Skip to content

Commit

Permalink
[backend] make sure not to replace a good remote project entry with a…
Browse files Browse the repository at this point in the history
… proto

This should fix issues with pacman obs instance.
  • Loading branch information
mlschroe committed May 14, 2014
1 parent 8f2f461 commit 6214a1b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/backend/bs_sched
Expand Up @@ -3202,7 +3202,10 @@ sub update_projpacks {
%remoteprojs = ();
} elsif (!($packids && @$packids)) {
update_prpcheckuseforbuild($projid) if $isgone;
delete $remoteprojs{$projid};
# delete project from remoteprojs if it is not in the remotemap
if (!grep {$_->{'project'} eq $projid} @{$projpacksin->{'remotemap'} || []}) {
delete $remoteprojs{$projid};
}
}
remotemap2remoteprojs($projpacksin->{'remotemap'});
}
Expand All @@ -3222,7 +3225,10 @@ sub update_projpacks_meta {
$projpacks->{$projid} = $proj;
update_prpcheckuseforbuild($projid, $proj);
}
delete $remoteprojs{$projid};
# delete project from remoteprojs if it is not in the remotemap
if (!grep {$_->{'project'} eq $projid} @{$projpacksin->{'remotemap'} || []}) {
delete $remoteprojs{$projid};
}
remotemap2remoteprojs($projpacksin->{'remotemap'});
}

Expand Down

0 comments on commit 6214a1b

Please sign in to comment.