[yum-commits] repoquery.py
skvidal at osuosl.org
skvidal at osuosl.org
Thu Aug 5 18:30:58 UTC 2010
repoquery.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit d37a4dba3793efa1ba70d7c9d354db4990b62efd
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Thu Aug 5 14:30:08 2010 -0400
catch repoErrors when we go to matchPkgs since that's where they end up getting setup.
partial fix for rh bug #621639
diff --git a/repoquery.py b/repoquery.py
index 1dda6be..f332294 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -760,7 +760,10 @@ class YumBaseQuery(yum.YumBase):
else:
if not self.sackops:
plain_pkgs = True
- pkgs = self.matchPkgs(items, plain_pkgs=plain_pkgs)
+ try:
+ pkgs = self.matchPkgs(items, plain_pkgs=plain_pkgs)
+ except yum.Errors.RepoError, e:
+ raise queryError("Could not match packages: %s" % to_unicode(e))
for prco in items:
for oper in self.sackops:
try:
More information about the Yum-commits
mailing list