chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct error message for bad update
[ypp-sc-tools.main.git]
/
yarrg
/
commod-update-receiver
diff --git
a/yarrg/commod-update-receiver
b/yarrg/commod-update-receiver
index 889913d3c6b717a5ebc41c71179c16072cf73860..9558d387892c9f1a1732c52fad64e6deef1245d0 100755
(executable)
--- a/
yarrg/commod-update-receiver
+++ b/
yarrg/commod-update-receiver
@@
-49,7
+49,7
@@
sub fail ($) {
print header(-status=>'400 Bad commodity update',
-type=>'text/plain',
-charset=>'us-ascii');
print header(-status=>'400 Bad commodity update',
-type=>'text/plain',
-charset=>'us-ascii');
- print "Error: $msg\n";
+ print "
\n
Error: $msg\n";
exit 0;
}
exit 0;
}
@@
-133,9
+133,10
@@
foreach my $mid (<_mid-*.hold>) {
unlink $mid or $!==&ENOENT or die "$mid $!";
}
unlink $mid or $!==&ENOENT or die "$mid $!";
}
+$o{'instance'}= $ENV{'YARRG_INSTANCE'};
my $mcontent= MIME::Entity->build(To => 'yarrg-commod-updates',
my $mcontent= MIME::Entity->build(To => 'yarrg-commod-updates',
- Subject => $
pwd
,
+ Subject => $
ENV{'YARRG_INSTANCE'}
,
Type => 'multipart/mixed',
Boundary => '=',
'Message-ID' => $mid,
Type => 'multipart/mixed',
Boundary => '=',
'Message-ID' => $mid,