From 1c72e4ef6d3502f2fa72aeb1a270c5d6baba731e Mon Sep 17 00:00:00 2001 From: hyokeun Date: Wed, 7 Jun 2017 11:17:16 +0900 Subject: [PATCH] Rpmbuildstage option starts with -(minus) Change-Id: I62a05909cf6d3bde3d685af0e1dc7ca21586adf9 --- job_submit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/job_submit.py b/job_submit.py index 6d7d27a..0235589 100755 --- a/job_submit.py +++ b/job_submit.py @@ -332,7 +332,7 @@ def change_release_name(build, project, git_tag): 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) -- 2.7.4