[yum-commits] 2 commits - repomanage.py repoquery.py
James Antill
james at osuosl.org
Thu May 20 19:41:14 UTC 2010
repomanage.py | 2 +-
repoquery.py | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
New commits:
commit 51b15590fb549d9cd2996d49aa469ee7168577bf
Author: James Antill <james at and.org>
Date: Thu May 20 15:25:08 2010 -0400
Remove exception from getFileList() and return an empty list, BZ 587288.
diff --git a/repomanage.py b/repomanage.py
index aeff9e5..96f0a2f 100755
--- a/repomanage.py
+++ b/repomanage.py
@@ -50,7 +50,7 @@ def getFileList(path, ext, filelist):
dir_list = os.listdir(path)
except OSError, e:
errorprint('Error accessing directory %s, %s' % (path, e.message))
- raise Error, 'Error accessing directory %s, %s' % (path, e.message)
+ return []
for d in dir_list:
if os.path.isdir(path + '/' + d):
commit 2d0bdc4153b2719ee33e43e655bc2a8cceb25eb0
Author: James Antill <james at and.org>
Date: Thu May 20 15:35:47 2010 -0400
Tell the user about bad --repoid args, but only in non-quiet BZ 593786
diff --git a/repoquery.py b/repoquery.py
index ced0b04..ab0ec52 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -827,11 +827,17 @@ def main(args):
repoq.conf.showdupesfromrepos = True
if opts.repoid:
+ found_repos = set()
for repo in repoq.repos.findRepos('*'):
if repo.id not in opts.repoid:
repo.disable()
else:
+ found_repos.add(repo.id)
repo.enable()
+ if not opts.quiet:
+ for not_found in set(opts.repoid).difference(found_repos):
+ repoq.logger.info('Repoid %s was not found.' % not_found)
+
if opts.disablerepos:
for repo_match in opts.disablerepos:
for repo in repoq.repos.findRepos(repo_match):
More information about the Yum-commits
mailing list