Skip to content

Commit

Permalink
[backend] fix typo in alllocked test
Browse files Browse the repository at this point in the history
Commit 8ad9324 changed the code
to not propagate med events to locked projects. Unfortunately
it used 'locked' instead of the correct 'lock' to check for
locked projects.
  • Loading branch information
mlschroe committed Nov 22, 2019
1 parent 64c8b78 commit c553152
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/BSSched/ProjPacks.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1032,10 +1032,10 @@ sub setup_projects {

# check if all packages are locked
my $alllocked;
if ($proj->{'locked'} && BSUtil::enabled($repoid, $proj->{'locked'}, 0, $myarch)) {
if ($proj->{'lock'} && BSUtil::enabled($repoid, $proj->{'lock'}, 0, $myarch)) {
$alllocked = 1;
for my $pack (grep {$_->{'locked'}} values(%{$proj->{'package'} || {}})) {
$alllocked = 0 unless BSUtil::enabled($repoid, $pack->{'locked'}, 1, $myarch);
for my $pack (grep {$_->{'lock'}} values(%{$proj->{'package'} || {}})) {
$alllocked = 0 unless BSUtil::enabled($repoid, $pack->{'lock'}, 1, $myarch);
}
}
if ($alllocked) {
Expand Down

0 comments on commit c553152

Please sign in to comment.