File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 25
25
BUILDTYPE=
26
26
KIWI_PARAMETERS=
27
27
BUILD_SKIP_BUNDLE=
28
+ BUILD_TOOL_OPTS=()
28
29
RPM_BUILD_IN_PLACE=
29
30
RPM_RECIPE_IN_SUBDIR=
30
31
RPM_NOPREP=
@@ -70,7 +71,7 @@ recipe_parse_options() {
70
71
case ${PARAM/#--/-} in
71
72
-buildtool-opt)
72
73
needarg
73
- BUILD_TOOL_OPT=" $ARG"
74
+ BUILD_TOOL_OPTS[${#BUILD_TOOL_OPTS[@]}]= $ARG
74
75
shift
75
76
;;
76
77
-stage)
Original file line number Diff line number Diff line change @@ -179,8 +179,10 @@ recipe_build_spec() {
179
179
180
180
# XXX: move _srcdefattr to macro file?
181
181
rpmbopts=("--define" "_srcdefattr (-,root,root)")
182
- if test -n "$BUILD_TOOL_OPT" ; then
183
- rpmbopts[${#rpmbopts[@]}]="$BUILD_TOOL_OPT"
182
+ if test -n "$BUILD_TOOL_OPTS" ; then
183
+ for opt in ${BUILD_TOOL_OPTS[@]}; do
184
+ rpmbopts[${#rpmbopts[@]}]=$opt
185
+ done
184
186
fi
185
187
if test "$DO_CHECKS" != true ; then
186
188
if chroot "$BUILD_ROOT" "$rpmbuild" --nocheck --help >/dev/null 2>&1; then
You can’t perform that action at this time.
0 commit comments