Fix multiple SRs for ABS package 56/215356/1
authorHyokeun Jeon <hyokeun.jeon@samsung.com>
Mon, 7 Oct 2019 09:22:41 +0000 (18:22 +0900)
committerHyokeun Jeon <hyokeun.jeon@samsung.com>
Mon, 7 Oct 2019 09:22:41 +0000 (18:22 +0900)
Change-Id: If3c67153aa0248b70705e2b56f90d74fff7ce609

job_submit.py

index 99e12a5..bacd979 100755 (executable)
@@ -541,8 +541,8 @@ def main(build_type, build, event, sr_count):
         obs_use_specname = item['OBS_use_specname']
 
         if build_type == 'prerelease':
-            if obs_stg_prj == 'abs':
-                if git_branch.endswith('_tpk') or git_branch.endswith('_wgt'):
+            if obs_stg_prj == 'abs' \
+                and (git_branch.endswith('_tpk') or git_branch.endswith('_wgt')):
                     print 'Create ABS prerelease project...'
             elif obs_stg_prj != 'prerelease':
                 print "%s is not 'prerelease' project in git-obs-mapping.xml." \