Skip to content

Commit

Permalink
pbuild: use image method for mkosi/simpleimage builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Oct 14, 2024
1 parent 7e92b29 commit e9113ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions PBuild/Checker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ sub genmeta_product {
sub genmeta {
my ($ctx, $p, $edeps, $hdeps) = @_;
my $buildtype = $p->{'buildtype'};
return genmeta_image($ctx, $p, $edeps) if $buildtype eq 'kiwi' || $buildtype eq 'docker' || $buildtype eq 'preinstallimage';
return genmeta_image($ctx, $p, $edeps) if $buildtype eq 'kiwi' || $buildtype eq 'docker' || $buildtype eq 'preinstallimage' || $buildtype eq 'mkosi' || $buildtype eq 'simpleimage';
return genmeta_product($ctx, $p, $edeps) if $buildtype eq 'productcompose';
my $dep2pkg = $p->{'native'} ? $ctx->{'dep2pkg_host'} : $ctx->{'dep2pkg'};
my $metacache = $ctx->{'metacache'};
Expand Down Expand Up @@ -550,7 +550,7 @@ sub check {
my ($ctx, $p, $incycle) = @_;

my $buildtype = $p->{'buildtype'};
return check_image($ctx, $p) if $buildtype eq 'kiwi' || $buildtype eq 'docker' || $buildtype eq 'preinstallimage';
return check_image($ctx, $p) if $buildtype eq 'kiwi' || $buildtype eq 'docker' || $buildtype eq 'preinstallimage' || $buildtype eq 'mkosi' || $buildtype eq 'simpleimage';
return check_product($ctx, $p) if $buildtype eq 'productcompose';

my $packid = $p->{'pkg'};
Expand Down Expand Up @@ -829,7 +829,7 @@ sub build {
$jobopts{'ccache-type'} = $opts->{'ccache-type'};
}
}
if ($kiwimode || $buildtype eq 'buildenv' || $buildtype eq 'preinstallimage') {
if ($kiwimode || $buildtype eq 'buildenv' || $buildtype eq 'preinstallimage' || $buildtype eq 'mkosi' || $buildtype eq 'simpleimage') {
@bdeps = (1, @$edeps); # reuse edeps packages, no need to expand again
} else {
print "=== builddeps expansion\n" if $expand_dbg;
Expand Down
2 changes: 1 addition & 1 deletion PBuild/Expand.pm
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ sub expand_deps {
my ($p, $bconf, $subpacks, $cross) = @_;
my $buildtype = $p->{'buildtype'} || '';
return expand_deps_product($p, $bconf, $subpacks, $cross) if $buildtype eq 'productcompose';
return expand_deps_image($p, $bconf, $subpacks, $cross) if $buildtype eq 'kiwi' || $buildtype eq 'docker' || $buildtype eq 'fissile' || $buildtype eq 'preinstallimage';
return expand_deps_image($p, $bconf, $subpacks, $cross) if $buildtype eq 'kiwi' || $buildtype eq 'docker' || $buildtype eq 'fissile' || $buildtype eq 'preinstallimage' || $buildtype eq 'mkosi' || $buildtype eq 'simpleimage';
delete $p->{'dep_experror'};
if ($p->{'error'}) {
$p->{'dep_expanded'} = [];
Expand Down

0 comments on commit e9113ef

Please sign in to comment.