Skip to content

Commit

Permalink
[backend] allow to disable early kiwi publishing
Browse files Browse the repository at this point in the history
jsc#OBS-42
  • Loading branch information
adrianschroeter committed Nov 22, 2019
1 parent 7f85aa0 commit 5980210
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/bs_sched
Original file line number Diff line number Diff line change
Expand Up @@ -1063,14 +1063,15 @@ eval {
($state, $details) = $ctx->checkpkgs();

my $isfinished = $state eq 'finished' ? 1 : 0;
my $bconf = $ctx->{'conf'};

# notify remote build services of repository changes or block state changes
# we alse send it if we finish a prp to give linked aggregates a chance to work
delete $gctx->{'repounchanged'}->{$prp} if $isfinished && !$gctx->{'prpfinished'}->{$prp};
sendrepochangeevent($gctx, $prp);

# free memory
Build::forgetdeps($ctx->{'conf'});
Build::forgetdeps($bconf);

$ctx->printstats();

Expand All @@ -1080,7 +1081,7 @@ eval {
}

# we always publish kiwi...
if ($isfinished || $ctx->{'prptype'} eq 'kiwi') {
if ($isfinished || (!$bconf->{'publishflags:noearlykiwipublish'} && $ctx->{'prptype'} eq 'kiwi')) {
my ($pubstate, $pubdetails) = $ctx->publish();
($state, $details) = ($pubstate, $pubdetails) if $pubstate && $pubstate ne 'done';
}
Expand Down

0 comments on commit 5980210

Please sign in to comment.