X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fcommod-results-processor;h=e391e4749780c1a04e50abfc4f146a4317a3b771;hb=d44517d863e2336f82299f7d3f5fcb68a84fe595;hp=cea64e5190318e437c5ad55ff6368cfe0f8a68ed;hpb=acdca6c311ca29cdb09c75a828458bb96f9ae2e7;p=ypp-sc-tools.main.git diff --git a/pctb/commod-results-processor b/pctb/commod-results-processor index cea64e5..e391e47 100755 --- a/pctb/commod-results-processor +++ b/pctb/commod-results-processor @@ -244,7 +244,7 @@ sub refresh_commodmap() { my $incommodmap=0; my $intag=''; my %got; - my $o= new IO::File "#commodmap#.tsv.new",'w' or die $!; + my $o= new IO::File "#commodmap#.tsv.tmp",'w' or die $!; undef %commodmap; my $xp= new XML::Parser @@ -292,7 +292,7 @@ sub refresh_commodmap() { # print STDERR "[[[$content]]]\n"; $xp->parse($content); close $o or die $!; - rename "#commodmap#.tsv.new","#commodmap#.tsv" or die $!; + rename "#commodmap#.tsv.tmp","#commodmap#.tsv" or die $!; } our %newcommods; @@ -449,7 +449,7 @@ sub main__upload () { ] }; - print STDERR "Uploading data to server...\n"; + print STDERR "Uploading data to $pctb...\n"; my $resp= $ua->post("$url", Content => $content, Content_Type => 'form-data');