Skip to content

Commit

Permalink
[backend] postpone useforbuild checking for prps with no packages
Browse files Browse the repository at this point in the history
This should ease transition to the new full handling for manually
created "base" repos.
  • Loading branch information
mlschroe committed Nov 6, 2014
1 parent f2935d8 commit f7a894e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/backend/bs_sched
Original file line number Diff line number Diff line change
Expand Up @@ -8364,8 +8364,14 @@ NEXTPRP:
print " - $prp\n";

if ($prpcheckuseforbuild{$prp}) {
checkuseforbuild($prp, $prpsearchpath{$prp}, undef);
delete $prpcheckuseforbuild{$prp};
my $packs = $projpacks->{$projid}->{'package'} || {};
# the if statement below is to ease transition to the new full handling
# for manually created "base" repos
if (!$new_full_handling || %$packs || ! -d "$reporoot/$prp/$myarch/:full" ||
-e "$reporoot/$prp/$myarch/:full.useforbuild") {
checkuseforbuild($prp, $prpsearchpath{$prp}, undef);
delete $prpcheckuseforbuild{$prp};
}
}
if (!$lastcheck{$prp}) {
my $oldlastcheck = BSUtil::retrieve("$reporoot/$prp/$myarch/:lastcheck", 1) || {};
Expand Down

0 comments on commit f7a894e

Please sign in to comment.