Skip to content

Commit

Permalink
dl/remcheck: Show an accurate count of versions checked
Browse files Browse the repository at this point in the history
Before, it showed the maximum number that might have been tried.
  • Loading branch information
dfandrich committed Jun 11, 2024
1 parent 4ebc85a commit 9c78956
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dl/remcheck.pl
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ sub geturl {

($cl, $st) = content_length(@data);

my $lasttried = 0;
if(!$st && $versionembedded) {
#
# Only scan for older URLs if the $version is part of it
Expand All @@ -380,11 +381,12 @@ sub geturl {

@data = geturl($churl, 1);
($cl, $st) = content_length(@data);
$lasttried++;
}
}

if(!$st) {
logmsg " <div class=\"buildfail\">None of the $lastfew latest versions found!</div>\n";
logmsg " <div class=\"buildfail\">None of the $lasttried latest versions found!</div>\n";
$failedcheck++;
next;
}
Expand Down

0 comments on commit 9c78956

Please sign in to comment.