Skip to content

Commit

Permalink
obsproduct: make source and debug packages optional
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Nov 17, 2023
1 parent 4ed7260 commit 07f2808
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 6 additions & 3 deletions Build/ObsProduct.pm
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,12 @@ sub parse {

# can we live without additional repository config?

# currently always on
$ret->{'sourcemedium'} = 1;
$ret->{'debugmedium'} = 1;
# Do we need source or debug packages?
my $bo = $data->{'build_options'};
if ($bo) {
$ret->{'sourcemedium'} = 1 if $bo->{'source'};
$ret->{'debugmedium'} = 1 if $bo->{'debug'};
}

return $ret;
}
Expand Down
2 changes: 0 additions & 2 deletions build-recipe-obsproduct
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ recipe_prepare_obsproduct() {
recipe_build_obsproduct() {
echo "running obs product builder..."

chroot "$BUILD_ROOT" chown -R abuild.abuild "$TOPDIR"

extra_args=""
if test -n "$RELEASE" ; then
extra_args=" $extra_args --release $RELEASE"
Expand Down
2 changes: 1 addition & 1 deletion expanddeps
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ Build::readdeps($cf, undef, \%repo);

my @sysdeps = Build::get_sysbuild($cf, $buildtype, $extrasysdeps);

if ($buildtype eq 'kiwi-image' || $buildtype eq 'kiwi-product') {
if ($buildtype eq 'kiwi-image' || $buildtype eq 'kiwi-product' || $buildtype eq 'obsproduct') {
if (!shift @sysdeps) {
print STDERR "expansion error\n";
print STDERR " $_\n" for @sysdeps;
Expand Down

0 comments on commit 07f2808

Please sign in to comment.