Problem: If there exist no matched directory in live repo,
it collects all rpms from other repos.
Change-Id: I59429968451540ba1879eb2deee8e2bbedbc54d1
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]