[yum-commits] yum-builddep.py

James Antill james at osuosl.org
Wed Feb 3 15:27:47 UTC 2010


 yum-builddep.py |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 6db6e5f44251ac563c35a8fdcec2b6b30b729c29
Author: James Antill <james at and.org>
Date:   Wed Feb 3 10:27:01 2010 -0500

    yum-builddep should do something useful for local .src.rpm files, BZ 561341

diff --git a/yum-builddep.py b/yum-builddep.py
index 48c3192..cee6598 100755
--- a/yum-builddep.py
+++ b/yum-builddep.py
@@ -165,11 +165,11 @@ class YumBuildDep(YumUtilBase):
                                       ", ".join(unmatch))
                     sys.exit(1)
                     
-
-            for newpkg in srpms:
-                toActOn.extend(_best_convert_pkg2srcpkgs(self, opts, newpkg))
-            # Get the best matching srpm        
-            toActOn = self.bestPackagesFromList(toActOn, 'src')
+        toActOn = []
+        for newpkg in srpms:
+            toActOn.extend(_best_convert_pkg2srcpkgs(self, opts, newpkg))
+        # Get the best matching srpm
+        toActOn = self.bestPackagesFromList(toActOn, 'src')
 
         for srpm in toActOn:
             self.logger.info('Getting requirements for %s' % srpm)


More information about the Yum-commits mailing list