[yum-commits] debuginfo-install.py

zpavlas at osuosl.org zpavlas at osuosl.org
Wed Apr 24 13:58:42 UTC 2013


 debuginfo-install.py |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 1dcb9ce309a6eb8438e76df38f428eeb39491126
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date:   Wed Apr 24 10:52:57 2013 +0200

    Try to install each package only once.  BZ 955922
    
    Provides better error output.  And it's faster, too.

diff --git a/debuginfo-install.py b/debuginfo-install.py
index 4215700..5c1f77d 100755
--- a/debuginfo-install.py
+++ b/debuginfo-install.py
@@ -52,6 +52,7 @@ class DebugInfoInstall(YumUtilBase):
                         action="store_true",
                         help="Turn off automatic installation/update of the yum debuginfo plugin")
 
+        self.done = set()
         self.main()
 
     def doUtilConfigSetup(self, *args, **kwargs):
@@ -117,6 +118,9 @@ class DebugInfoInstall(YumUtilBase):
         sys.exit(self.doUtilTransaction())
 
     def di_try_install(self, po):
+        if po in self.done:
+            return
+        self.done.add(po)
         if po.name.endswith('-debuginfo'): # Wildcard matches produce this
             return
         di_name = '%s-debuginfo' % po.name


More information about the Yum-commits mailing list