Skip to content

Commit

Permalink
Merge pull request #8768 from mlschroe/master
Browse files Browse the repository at this point in the history
[backend] fix typo in alllocked test
  • Loading branch information
adrianschroeter committed Nov 22, 2019
2 parents b8d53d9 + c553152 commit e0f1b6f
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 e0f1b6f

Please sign in to comment.