Skip to content

Commit

Permalink
[backend] support caching of an repodata error state
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Feb 19, 2013
1 parent 60f217f commit aa0c756
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/backend/bs_sched
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,14 @@ sub addrepo {
eval {$r = $pool->repofromfile($prp, $solvfile);};
return $r if $r;
}
if ($repodatas{$prp}->{'error'}) {
return undef;
}
}
delete $repodatas{$prp}->{'solv'};
delete $repodatas{$prp}->{'lastscan'};
delete $repodatas{$prp}->{'solvfile'};
delete $repodatas{$prp}->{'error'};
my ($projid, $repoid) = split('/', $prp, 2);
if ($remoteprojs{$projid}) {
return addrepo_remote($pool, $prp, $remoteprojs{$projid});
Expand Down

0 comments on commit aa0c756

Please sign in to comment.