Skip to content

Commit

Permalink
[backend] do not upgrade remote project events
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Sep 16, 2013
1 parent 57dd9ad commit 1b26a3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend/bs_sched
Expand Up @@ -2444,13 +2444,15 @@ sub get_projpacks_resume {
addretryevent({'type' => 'project', 'project' => $projid});
return;
}
my $wasremote = !$projpacks->{$projid} && $remoteprojs{$projid} ? 1 : undef;
my $packids = $handle->{'_packids'}; # we only requested those
my $oldprojdata = $packids ? clone_projpacks_part($projid, $packids) : undef;
update_projpacks($projpacksin, $projid, $packids);
get_projpacks_postprocess() if !$packids || postprocess_needed_check($projid, $oldprojdata);

# do some upgrades if the project is gone and we fetched all packages (i.e. project event case)
if (!$packids && !$projpacks->{$projid}) {
# do some upgrades if the project is gone and we fetched all packages
# (i.e. project event case as someone deleted a project)
if (!$packids && !$projpacks->{$projid} && !($wasremote && $remoteprojs{$projid})) {
$handle->{'_dolink'} = 1;
$handle->{'_changetype'} = 'high';
}
Expand Down

0 comments on commit 1b26a3c

Please sign in to comment.