[Yum-devel] [PATCH] Try to install each package only once. BZ 955922
Zdenek Pavlas
zpavlas at redhat.com
Wed Apr 24 08:58:55 UTC 2013
Provides better error output. And it's faster, too.
---
debuginfo-install.py | 4 ++++
1 file changed, 4 insertions(+)
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
--
1.7.11.7
More information about the Yum-devel
mailing list