Skip to content

Commit

Permalink
Rename obsproduct to productcompose
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Nov 20, 2023
1 parent abb1f8b commit 92cfd5c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Build.pm
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ sub import {
require Build::Mkosi;
}
if ($do_productcompose) {
require Build::ObsProduct;
require Build::ProductCompose;
}
}

Expand Down Expand Up @@ -199,7 +199,7 @@ my %subst_defaults = (
'kiwi',
],
'system-packages:productcompose' => [
'obs-product-builder',
'product-composer',
],
'system-packages:docker' => [
'docker', 'system-packages:repo-creation',
Expand Down Expand Up @@ -1327,7 +1327,7 @@ sub parse {
return Build::Kiwi::parse($cf, $fn, @args) if $do_kiwi && $fn =~ /\.kiwi$/;
return Build::LiveBuild::parse($cf, $fn, @args) if $do_livebuild && $fn =~ /\.livebuild$/;
return Build::Mkosi::parse($cf, $fn, @args) if $do_mkosi && $fn =~ /^mkosi\./;
return Build::ObsProduct::parse($cf, $fn, @args) if $do_productcompose && $fn =~ /\.productcompose$/;
return Build::ProductCompose::parse($cf, $fn, @args) if $do_productcompose && $fn =~ /\.productcompose$/;
return parse_typed($cf, $fn, recipe2buildtype($fn), @args);
}

Expand All @@ -1337,7 +1337,7 @@ sub parse_typed {
return Build::Rpm::parse($cf, $fn, @args) if $do_rpm && $buildtype eq 'spec';
return Build::Deb::parse($cf, $fn, @args) if $do_deb && $buildtype eq 'dsc';
return Build::Kiwi::parse($cf, $fn, @args) if $do_kiwi && $buildtype eq 'kiwi';
return Build::ObsProduct::parse($cf, $fn, @args) if $do_productcompose && $buildtype eq 'productcompose';
return Build::ProductCompose::parse($cf, $fn, @args) if $do_productcompose && $buildtype eq 'productcompose';
return Build::LiveBuild::parse($cf, $fn, @args) if $do_livebuild && $buildtype eq 'livebuild';
return Build::Snapcraft::parse($cf, $fn, @args) if $do_snapcraft && $buildtype eq 'snapcraft';
return Build::Appimage::parse($cf, $fn, @args) if $do_appimage && $buildtype eq 'appimage';
Expand Down
2 changes: 1 addition & 1 deletion Build/ProductComposer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#
################################################################

package Build::ObsProduct;
package Build::ProductCompose;

use strict;
use warnings;
Expand Down
8 changes: 4 additions & 4 deletions build-recipe-productcompose
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ recipe_setup_productcompose() {
mkdir -p "$BUILD_ROOT$TOPDIR"
mkdir -p "$BUILD_ROOT$TOPDIR/OTHER"
mkdir -p "$BUILD_ROOT$TOPDIR/SOURCES"
mkdir -p "$BUILD_ROOT$TOPDIR/OBSPRODUCT"
mkdir -p "$BUILD_ROOT$TOPDIR/PRODUCT"
# compat, older build versions did not clean TOPDIR ...
mkdir -p "$BUILD_ROOT$TOPDIR/BUILD"
mkdir -p "$BUILD_ROOT$TOPDIR/RPMS"
Expand Down Expand Up @@ -56,7 +56,7 @@ recipe_prepare_productcompose() {
}

recipe_build_productcompose() {
echo "running obs product builder..."
echo "running product composer..."

extra_args=""
if test -n "$RELEASE" ; then
Expand All @@ -65,11 +65,11 @@ recipe_build_productcompose() {
if test -n "$BUILD_FLAVOR" ; then
extra_args=" $extra_args --flavor $BUILD_FLAVOR"
fi
chroot "$BUILD_ROOT" su -c "/usr/bin/obs-product-builder build $extra_args -v --clean $TOPDIR/SOURCES/$RECIPEFILE $TOPDIR/OBSPRODUCT" - abuild < /dev/null && BUILD_SUCCEEDED=true
chroot "$BUILD_ROOT" su -c "/usr/bin/product-composer build $extra_args -v --clean $TOPDIR/SOURCES/$RECIPEFILE $TOPDIR/PRODUCT" - abuild < /dev/null && BUILD_SUCCEEDED=true
}

recipe_resultdirs_productcompose() {
echo OBSPRODUCT
echo PRODUCT
}

recipe_cleanup_productcompose() {
Expand Down

0 comments on commit 92cfd5c

Please sign in to comment.