[yum-commits] 2 commits - yum-builddep.py
skvidal at osuosl.org
skvidal at osuosl.org
Fri Nov 21 20:37:04 UTC 2008
yum-builddep.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 05adbabfa59516c096ff10753729b2ef1b5c85aa
Merge: 327bf07... fae5b42...
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Fri Nov 21 15:36:49 2008 -0500
Merge branch 'master' of ssh://yum.baseurl.org/srv/projects/yum/git/yum-utils
* 'master' of ssh://yum.baseurl.org/srv/projects/yum/git/yum-utils:
If we don't have a command, or it's search/list/info, warm the rpm DB cache
Fix rpm warm cache plugin when no commands are there
Import PluginYumExit so we can use it
commit 327bf07b528171714ada1037e3a3cdfa8cbe05c9
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Fri Nov 21 15:33:47 2008 -0500
catch yum.Errors.RepoError when setting up the package sacks.
diff --git a/yum-builddep.py b/yum-builddep.py
index 2fafdc5..0a5e7ba 100755
--- a/yum-builddep.py
+++ b/yum-builddep.py
@@ -19,7 +19,7 @@ sys.path.insert(0,'/usr/share/yum-cli')
import yum
from yum.misc import setup_locale
-
+import yum.Errors
from utils import YumUtilBase
import logging
@@ -90,7 +90,11 @@ class YumBuildDep(YumUtilBase):
# Setup the repo, without a cache
r.setup(0)
# Setup pkgSack with 'src' in the archlist
- self._getSacks(archlist=archlist,thisrepo=r.id)
+ try:
+ self._getSacks(archlist=archlist,thisrepo=r.id)
+ except yum.Errors.RepoError, e:
+ print "Could not setup repo %s: %s" % (r.id, e)
+ sys.exit(1)
# go through each of the pkgs, figure out what they are/where they are
# if they are not a local package then run
More information about the Yum-commits
mailing list