Skip to content

Commit

Permalink
[backend] BSSched::DoD.pm: do nothing in dodcheck if called from the …
Browse files Browse the repository at this point in the history
…repo server

We added a dodcheck call to Docker/Kiwi, but that broke buildinfo
generation if a DoD package was not available.
  • Loading branch information
mlschroe committed Mar 18, 2022
1 parent e7684df commit 67f43e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/BSSched/DoD.pm
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ sub dodcheck {
my ($ctx, $pool, $arch, @pkgs) = @_;
return unless @pkgs;
$ctx = $ctx->{'realctx'} if $ctx->{'realctx'}; # we need the real one to add entries
return if $ctx->{'isreposerver'}; # the reposerver does not check for dods
my %names;
if (defined &BSSolv::repo::dodcookie) {
%names = (%names, $_->pkgnames()) for grep {$_->dodurl() || $_->dodcookie()} $pool->repos();
Expand Down

0 comments on commit 67f43e2

Please sign in to comment.