diff options
-rw-r--r-- | Build.pm | 2 | ||||
-rwxr-xr-x | build | 4 |
2 files changed, 6 insertions, 0 deletions
@@ -297,6 +297,8 @@ sub read_config { } else { push @{$config->{'constraint'}}, $l; } + } elsif ($l0 eq 'rpmbuildstage:') { # use the rpmbuild --stage option + $config->{'rpmbuildstage'} = $l[0]; } elsif ($l0 !~ /^[#%]/) { warn("unknown keyword in config: $l0\n"); } @@ -2192,6 +2192,10 @@ for SPECFILE in "${SPECFILES[@]}" ; do echo "VM_TYPE='$VM_TYPE'" >> $BUILD_ROOT/.build/build.data echo "shell='$shell'" >> $BUILD_ROOT/.build/build.data echo "statistics='$statistics'" >> $BUILD_ROOT/.build/build.data + # use the rpmbuild --stage option + if [ ! -z $BUILD_RPM_BUILD_STAGE ]; then + echo "BUILD_RPM_BUILD_STAGE='-$BUILD_RPM_BUILD_STAGE'" >> $BUILD_ROOT/.build/build.data + fi # fallback time for broken hosts date '+@%s' > $BUILD_ROOT/.build/.date if [ "$VM_TYPE" = 'emulator' ]; then |