X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.web-live.git;a=blobdiff_plain;f=yarrg%2Fcommod-update-receiver;h=16a9ac65dc852e8af2b8b32672edece894fd2818;hp=70cf36a93bdfe96aa51446172f2b53349786439f;hb=1c640671a7ee8d30ee80c393822fa02ef3da0031;hpb=877b0ba6b2d72d7957e2a8015520b87371cba6c9 diff --git a/yarrg/commod-update-receiver b/yarrg/commod-update-receiver index 70cf36a..16a9ac6 100755 --- a/yarrg/commod-update-receiver +++ b/yarrg/commod-update-receiver @@ -25,13 +25,17 @@ # are used without permission. This program is not endorsed or # sponsored by Three Rings. - -# Uploads contain: -# ocean canonical mixed case -# island canonical mixed case +# All calls contain: # clientname "ypp-sc-tools" # clientversion 2.1-g2e06a26 [from git-describe --tags HEAD] # clientfixes "lastpage" [space separated list] +# +# Timestamp requests contain: +# requesttimestamp +# +# Uploads contain: +# ocean canonical mixed case +# island canonical mixed case # data filename=deduped.tsv.gz output of yarrg --tsv @@ -84,6 +88,12 @@ foreach my $bug (@$clientinfo) { $o{'clientversion'}= must_param('clientversion', "^(\\d[-+._0-9a-zA-Z]+)\$"); +if (param('requesttimestamp')) { + my $now= time; defined $now or die; + print header(-type=>'text/plain', -charset=>'us-ascii'), "OK $now.\n"; + exit(0); +} + $o{'ocean'}= must_param('ocean', $re_any); $o{'island'}= must_param('island', $re_any);