Commit 216bea3 1 parent a4b10cb commit 216bea3 Copy full SHA for 216bea3
File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -129,14 +129,19 @@ sub parse {
129
129
# Do we need source or debug packages?
130
130
$ret -> {' sourcemedium' } = 1 unless ($data -> {' source' } || ' ' ) eq ' drop' ;
131
131
$ret -> {' debugmedium' } = 1 unless ($data -> {' debug' } || ' ' ) eq ' drop' ;
132
+
133
+ $ret -> {' baseiso' } = $data -> {' iso' }-> {' base' } if $data -> {' iso' } && $data -> {' iso' }-> {' base' };
134
+
132
135
my @architectures = @{$data -> {' architectures' } || []};
133
136
if ($data -> {' flavors' }) {
134
137
if ($cf -> {' buildflavor' }) {
135
138
my $f = $data -> {' flavors' }-> {$cf -> {' buildflavor' }};
136
139
return { error => " Flavor '$cf ->{'buildflavor'}' not found" } unless defined $f ;
137
140
@architectures = @{$f -> {' architectures' } || []} if $f -> {' architectures' };
141
+ $ret -> {' baseiso' } = $f -> {' iso' }-> {' base' } if $f -> {' iso' } && $f -> {' iso' }-> {' base' };
138
142
}
139
143
}
144
+
140
145
$ret -> {' error' } = ' excluded' unless @architectures ;
141
146
$ret -> {' exclarch' } = \@architectures if @architectures ;
142
147
$ret -> {' bcntsynctag' } = $data -> {' bcntsynctag' } if $data -> {' bcntsynctag' };
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ recipe_build_productcompose() {
58
58
echo "running product composer..."
59
59
60
60
local milestone=$(productcompose_query_recipe milestone)
61
+ local baseiso=$(productcompose_query_recipe baseiso)
61
62
extra_args=
62
63
if test -n "$RELEASE" ; then
63
64
extra_args=" $extra_args --release $RELEASE"
@@ -71,7 +72,11 @@ recipe_build_productcompose() {
71
72
if test -n "$BUILD_VCSURL" ; then
72
73
extra_args=" $extra_args --vcs $BUILD_VCSURL"
73
74
fi
74
- 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
75
+ if test -n "$baseiso"; then
76
+ BUILD_USER=root
77
+ fi
78
+
79
+ chroot "$BUILD_ROOT" su -c "/usr/bin/product-composer build $extra_args -v --clean $TOPDIR/SOURCES/$RECIPEFILE $TOPDIR/PRODUCT" - $BUILD_USER < /dev/null && BUILD_SUCCEEDED=true
75
80
pushd "$BUILD_ROOT/$TOPDIR/PRODUCT"
76
81
for i in * ; do
77
82
test -e "$i" || continue
You can’t perform that action at this time.
0 commit comments