Add handling of not finding version to download.

This commit is contained in:
2020-01-19 17:11:27 +01:00
parent 2e0269a26f
commit a202486679

5
pcurse
View File

@ -82,13 +82,16 @@ while(scalar(keys %jobs)) {
if(exists($jobs{$jobid}->{'retried'})) {
print 'E';
push(@errors,'Error during check: '.$jres->{'addon'}->{'name'})
} elsif ($jres->{'result'} eq 'Could not find version number') {
print 'E';
push(@errors, 'Error during check (could not find version number): '.$jres->{'addon'}->{'name'})
} else {
print '|';
$jobs{$jobid}{'job'}->{'retried'} = 1;
my $workid = $pool->job('check', $jobs{$jobid}{'job'});
$jobs{$workid}{'todo'} = 'check';
$jobs{$workid}{'job'} = $jobs{$jobid}{'job'};
$jobs{$workid}{'i'} = $jobs{$jobid}{'i'};
$jobs{$workid}{'job'}->{'retried'} = 1;
}
}
} elsif($jres->{'did'} eq 'download') {