Do not handle non-existing repo when create repos 23/204623/1
authorHyokeun Jeon <hyokeun.jeon@samsung.com>
Thu, 25 Apr 2019 05:54:08 +0000 (14:54 +0900)
committerHyokeun Jeon <hyokeun.jeon@samsung.com>
Thu, 25 Apr 2019 05:54:11 +0000 (14:54 +0900)
Problem: If there exist no matched directory in live repo,
         it collects all rpms from other repos.

Change-Id: I24b21f56331f137c4e46271d9442ee60793258b3

common/repomaker.py

index 85698f7..59e240a 100644 (file)
@@ -57,7 +57,7 @@ def collect(in_dir, archs, repo_name=None):
         find_dir = os.path.join(in_dir, repo_name)
         if not os.path.exists(find_dir):
             #TODO: Do not handle non-existing repo.
-            find_dir = in_dir
+            #find_dir = in_dir
             print "WARNING! No matching repo(%s) exist." % repo_name
     for fname in find_files(find_dir):
         ftype = fname.split('.')[-2]