Skip to content

Commit

Permalink
Merge pull request #14138 from mlschroe/master
Browse files Browse the repository at this point in the history
[backend] always do the trigger_auto_deep_checks test if the config c…
  • Loading branch information
mlschroe committed Apr 12, 2023
2 parents 581a7d1 + 6be8a21 commit ceeb58d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/backend/BSSched/ProjPacks.pm
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,13 @@ sub get_projpacks_resume {
get_projpacks($gctx, $async, $projid);
}

if (!$packids) {
my $oldproj = $projpacks->{$projid} || $remoteprojs->{$projid} || {};
my $newproj = $projpacksin->{'project'}->[0];
$newproj = undef if $newproj && $newproj->{'name'} ne $projid;
$newproj ||= (grep {$_->{'project'} eq $projid} @{$projpacksin->{'remotemap'} || []})[0] || {};
trigger_auto_deep_checks($gctx, $projid, $oldproj, $newproj) if $oldproj && $newproj;
}
my $oldproj = $projpacks->{$projid} || $remoteprojs->{$projid} || {};
my $newproj = $projpacksin->{'project'}->[0];
$newproj = undef if $newproj && $newproj->{'name'} ne $projid;
$newproj ||= (grep {$_->{'project'} eq $projid} @{$projpacksin->{'remotemap'} || []})[0] || {};
my $oldconfig = $oldproj->{'config'} || '';
my $newconfig = $newproj->{'config'} || '';
trigger_auto_deep_checks($gctx, $projid, $oldproj, $newproj) if !$packids || $oldconfig ne $newconfig;

# commit the update
update_projpacks($gctx, $projpacksin, $projid, $packids);
Expand Down

0 comments on commit ceeb58d

Please sign in to comment.