Add handling of not finding version to download.
This commit is contained in:
5
pcurse
5
pcurse
@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user