fix issue "Test converting repository to the download structure" 28/152228/2
authorfushuai <shuai01.fu@samsung.com>
Fri, 22 Sep 2017 02:06:06 +0000 (10:06 +0800)
committerJiankang <jiankang.fan@samsung.com>
Tue, 26 Sep 2017 05:58:45 +0000 (13:58 +0800)
The test_add_repo case in the tests/test_repomaker.py created a empty *primary.xml.gz
Then check packages in the *primary.xml.gz fail

Change-Id: I66913839f01f8437051c71730bad13e205f395ba
Signed-off-by: fushuai <shuai01.fu@samsung.com>
common/repomaker.py

index 812f5c9..29be8c2 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]