Change-Id: I62a05909cf6d3bde3d685af0e1dc7ca21586adf9
if not os.getenv('PRERELEASE_RPMBUILD_STAGE') in ('ba', 'bb'):
print 'Error: PRERELEASE_RPMBUILD_STAGE %s' % (os.getenv('PRERELEASE_RPMBUILD_STAGE'))
else:
- rpmbuildstage = 'Rpmbuildstage: %s' % (os.getenv('PRERELEASE_RPMBUILD_STAGE'))
+ rpmbuildstage = 'Rpmbuildstage: -%s' % (os.getenv('PRERELEASE_RPMBUILD_STAGE'))
res = re.findall(r'^Rpmbuildstage: ?\S+$', config, flags=re.MULTILINE)
if res:
config = config.replace(res[0], '%s' % (rpmbuildstage), 1)