[yum-git] yum-builddep.py

James Antill james at linux.duke.edu
Mon Aug 4 18:55:38 UTC 2008


 yum-builddep.py |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 4bb674d87a5f98ae2459cb9b476cbab40db0b24c
Author: James Antill <james at and.org>
Date:   Mon Aug 4 14:54:15 2008 -0400

    Allow yum-builddep to use "extras" (installed/not-available pacakges

diff --git a/yum-builddep.py b/yum-builddep.py
index b8d2622..f7425c7 100755
--- a/yum-builddep.py
+++ b/yum-builddep.py
@@ -117,9 +117,12 @@ class YumBuildDep(YumUtilBase):
             exact, match, unmatch = yum.packages.parsePackages(self.pkgSack.returnPackages(), srcnames, casematch=1)
             srpms += exact + match
             
-            if len(unmatch) > 0:
-                self.logger.error("No such package(s): %s" % ", ".join(unmatch))
-                sys.exit(1)
+            if len(unmatch):
+                exact, match, unmatch = yum.packages.parsePackages(self.rpmdb.returnPackages(), unmatch, casematch=1)
+                if len(unmatch):
+                    self.logger.error("No such package(s): %s" %
+                                      ", ".join(unmatch))
+                    sys.exit(1)
 
         for srpm in srpms:
             for dep in srpm.requiresList():



More information about the Yum-cvs-commits mailing list