Skip to content

Commit

Permalink
[backend] make select_dependency returning undef fatal
Browse files Browse the repository at this point in the history
I think this was a debugging leftover.
  • Loading branch information
mlschroe committed Sep 7, 2021
1 parent 7c68ead commit ebbdc1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/BSRepServer/Checker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ sub setup_modulemd {
my $modulemd = $pdata->{'modulemd'};
die("$modulemdpackid: not a modulemd package\n") unless $modulemd;
my $bconf = $ctx->{'conf'};
my $dependency = BSSched::Modulemd::select_dependency($bconf, $modulemd) || {};
my $dependency = BSSched::Modulemd::select_dependency($bconf, $modulemd);
die("cannot build this module\n") unless $dependency;
my $errors = BSSched::Modulemd::extend_modules($bconf, $dependency->{'buildrequires'} || []);
die(join(', ', @$errors)."\n") if $errors;
Expand Down
2 changes: 1 addition & 1 deletion src/backend/BSSched/Checker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ sub setup {
if ($pdatas->{'modulemd'} && $pdatas->{'modulemd'}->{'modulemd'}) {
my $pdata = $pdatas->{'modulemd'};
my $modulemd = $pdata->{'modulemd'};
my $dependency = BSSched::Modulemd::select_dependency($bconf, $modulemd) || {};
my $dependency = BSSched::Modulemd::select_dependency($bconf, $modulemd);
return ('broken', 'cannot build this module') unless $dependency;
my $errors = BSSched::Modulemd::extend_modules($bconf, $dependency->{'buildrequires'} || []);
return ('broken', join(', ', @$errors)) if $errors;
Expand Down

0 comments on commit ebbdc1e

Please sign in to comment.