chiark / gitweb /
Cope with multi-word arches
[ypp-sc-tools.main.git] / yarrg / commod-update-receiver
index f11442854c0f31bf4029600ac5a9b705fae0db3a..9684c696794996c527c44e2d051747652230ffe6 100755 (executable)
@@ -49,7 +49,7 @@ sub fail ($) {
     print header(-status=>'400 Bad commodity update',
                 -type=>'text/plain',
                 -charset=>'us-ascii');
-    print "Error: $msg\n";
+    print "\nError: $msg\n";
     exit 0;
 }
 
@@ -133,9 +133,10 @@ foreach my $mid (<_mid-*.hold>) {
     unlink $mid or $!==&ENOENT or die "$mid $!";
 }
 
+$o{'instance'}= $ENV{'YARRG_INSTANCE'};
 
 my $mcontent= MIME::Entity->build(To => 'yarrg-commod-updates',
-                                 Subject => $pwd,
+                                 Subject => $ENV{'YARRG_INSTANCE'},
                                  Type => 'multipart/mixed',
                                  Boundary => '=',
                                  'Message-ID' => $mid,