Rpmbuildstage option starts with -(minus) 62/132562/1
authorhyokeun <hyokeun.jeon@samsung.com>
Wed, 7 Jun 2017 02:17:16 +0000 (11:17 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Wed, 7 Jun 2017 02:17:16 +0000 (11:17 +0900)
Change-Id: I62a05909cf6d3bde3d685af0e1dc7ca21586adf9

job_submit.py

index 6d7d27a..0235589 100755 (executable)
@@ -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)