Skip making repo directory rather than crash 09/143209/1
authorhyokeun <hyokeun.jeon@samsung.com>
Wed, 9 Aug 2017 05:38:43 +0000 (14:38 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Wed, 9 Aug 2017 05:38:46 +0000 (14:38 +0900)
NOTICE: Need to handle repo errors in other way.

Change-Id: Ie15998475f3c409c4a87e7fc00caca6bd0480cb5

job_pre_release_obs.py

index 245fabd..62ae22b 100644 (file)
@@ -216,7 +216,10 @@ def make_repo(project, repo, backenddb, base_url, base_path,
             repomaker.add_repo(live_repo_path, repo['Name'],
                                repo['Architectures'], move=False)
         except RepoMakerError, err:
-            raise LocalError("Unable to create download repo: %s" % err)
+            #raise LocalError("Unable to create download repo: %s" % err)
+            print "Unable to create download repo: %s" % repr(err)
+            repos.update({repo['Name']: {'archs': list(set(repo['Architectures']))}})
+            continue
 
         # Assuming that there can be just one image-configurations-
         # rpm in the repo