[yum-commits] yum-builddep.py
skvidal at osuosl.org
skvidal at osuosl.org
Mon Feb 2 20:54:09 UTC 2009
yum-builddep.py | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
New commits:
commit e5f10900eb37c5b92a7198488f5066153954a991
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Mon Feb 2 15:49:45 2009 -0500
make yum-builddep behave a bit better when it hits a srpm signed by an unknown key.
diff --git a/yum-builddep.py b/yum-builddep.py
index 0a5e7ba..eb7b1da 100755
--- a/yum-builddep.py
+++ b/yum-builddep.py
@@ -62,7 +62,12 @@ class YumBuildDep(YumUtilBase):
self.doUtilYumSetup()
# Do the real action
# solve for each srpm and put the pkgs into a ts
- self.get_build_deps()
+ try:
+ self.get_build_deps()
+ except yum.Errors.MiscError, e:
+ msg = "There was a problem getting the build deps, exiting:\n %s" % e
+ self.logger.error(msg)
+ sys.exit(1)
self.buildTransaction()
if len(self.tsInfo) < 1:
@@ -109,7 +114,11 @@ class YumBuildDep(YumUtilBase):
srpms = []
for arg in self.cmds:
if arg.endswith('.src.rpm'):
- srpms.append(yum.packages.YumLocalPackage(self.ts, arg))
+ try:
+ srpms.append(yum.packages.YumLocalPackage(self.ts, arg))
+ except yum.Errors.MiscError, e:
+ self.logger.error("Error: Could not open %s" % arg)
+ raise
elif arg.endswith('.src'):
srcnames.append(arg)
else:
More information about the Yum-commits
mailing list