Do not handle non-existing repo when create repos 09/135309/2
authorhyokeun <hyokeun.jeon@samsung.com>
Thu, 22 Jun 2017 00:04:36 +0000 (09:04 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Thu, 22 Jun 2017 00:12:03 +0000 (09:12 +0900)
Problem: If there exist no matched directory in live repo,
         it collects all rpms from other repos.

Change-Id: I59429968451540ba1879eb2deee8e2bbedbc54d1

common/repomaker.py

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