Skip to content

Commit

Permalink
bring get_sysbuild in sync with recipe_set_buildtype
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Dec 18, 2014
1 parent 0b494c4 commit 6e41921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Build.pm
Original file line number Diff line number Diff line change
Expand Up @@ -500,10 +500,10 @@ sub get_sysbuild {
my $engine = $config->{'buildengine'} || '';
$buildtype ||= $config->{'type'} || '';
my @sysdeps;
if ($engine eq 'mock' && $buildtype ne 'kiwi') {
if ($engine eq 'mock' && $buildtype eq 'spec') {
@sysdeps = @{$config->{'substitute'}->{'system-packages:mock'} || []};
@sysdeps = ('mock', 'createrepo') unless @sysdeps;
} elsif ($engine eq 'debootstrap' && $buildtype ne 'kiwi') {
} elsif ($engine eq 'debootstrap' && $buildtype eq 'dsc') {
@sysdeps = @{$config->{'substitute'}->{'system-packages:debootstrap'} || []};
@sysdeps = ('debootstrap', 'lsb-release') unless @sysdeps;
} elsif ($buildtype eq 'livebuild') {
Expand Down

0 comments on commit 6e41921

Please sign in to comment.