You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by he...@apache.org on 2021/04/21 10:35:25 UTC
svn commit: r1889050 - /spamassassin/trunk/build/mkupdates/listpromotable
Author: hege
Date: Wed Apr 21 10:35:25 2021
New Revision: 1889050
URL: http://svn.apache.org/viewvc?rev=1889050&view=rev
Log:
Bug 7505 - build/mkupdates/listpromotable deprecated goto
Modified:
spamassassin/trunk/build/mkupdates/listpromotable
Modified: spamassassin/trunk/build/mkupdates/listpromotable
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/mkupdates/listpromotable?rev=1889050&r1=1889049&r2=1889050&view=diff
==============================================================================
--- spamassassin/trunk/build/mkupdates/listpromotable (original)
+++ spamassassin/trunk/build/mkupdates/listpromotable Wed Apr 21 10:35:25 2021
@@ -87,10 +87,12 @@ if (!scalar keys %{$netlist}) {
my $url; # tracks the last day used
my $dayoffset = 0;
+my $with_new_offset = 0;
+
foreach my $day (@DAYS_REQUIRED) {
- if (!$FROM_CACHE || !-f $cache.$day || (-M $cache.$day) > 0.5) {
+ if (!$FROM_CACHE || !-f $cache.$day || (-M $cache.$day) > 0.5 || $with_new_offset) {
-with_new_offset:
+ $with_new_offset = 0;
$url = $cgi_url.($day+$dayoffset)."-days-ago?xml=1";
warn "HTTP get: $url\n";
@@ -134,7 +136,8 @@ with_new_offset:
# so the results are untrustworthy.
if ($daysubs =~ /(?:^|\s)net-/) {
warn "day $day contains a --net mass-check! offsetting by an extra day\n";
- $dayoffset++; goto with_new_offset;
+ $dayoffset++;
+ $with_new_offset = 1; redo;
}
($submitters ne '') and $submitters .= "; ";