Fix not to create package DB for repository which uses '_' in its name 83/171483/2
authorSoonKyu Park <sk7.park@samsung.com>
Mon, 5 Mar 2018 05:57:27 +0000 (14:57 +0900)
committerpark <sk7.park@samsung.com>
Tue, 6 Mar 2018 02:30:46 +0000 (02:30 +0000)
Change-Id: Ib133dcc044dbe0329f832096a12237b6e4ee6776

common/gbsutils.py
job_gbsdbbuild_one_repoarch_build.py

index 47e5012..1785c9e 100644 (file)
@@ -606,7 +606,7 @@ class GBSBuild:
                     raise LocalError('GBS fullbuild failed')
 
 
-    def copy_build_results_to_dl_server(self):
+    def copy_build_results_to_dl_server(self,repository):
         print '----start copy_build_results_to_dl_server-----------------------------------'
 
         path_live_repo_base = os.getenv('PATH_LIVE_REPO_BASE').rstrip('/')
@@ -647,7 +647,6 @@ class GBSBuild:
         profile_list=os.listdir(self.build_root+'/local/repos/')
         for profile in profile_list:
             build_result_repo_path=self.build_root+'/local/repos/'+profile+'/'
-            repository=profile.split('_')[-1]
             live_repo_root=obs_liverepo+'/'+repository
             if not os.path.exists(live_repo_root):
                 os.mkdir(live_repo_root)
index 7b9f565..f8a3dcf 100644 (file)
@@ -163,7 +163,7 @@ def main():
     gbsbuild_sub._do_repo_arch_gbs_fullbuild(repository,architecture)
     (gbs_build_status,gbs_build_status_reason) = gbsbuild_sub._get_gbs_build_result_status(repository,architecture)
     
-    live_out_dir=gbsbuild_sub.copy_build_results_to_dl_server()
+    live_out_dir=gbsbuild_sub.copy_build_results_to_dl_server(repository)
 
     os.chdir(original_dir)