Re: [PATCH] Don't add duplicates to the transaction set (#575878, jantill).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack.

On 03/29/2010 07:56 PM, Chris Lumens wrote:
Adding duplicates can cause dependency resolution to go from taking seconds
to taking minutes.  Long term we want to add checks to yum and/or remove our
selectPackage entirely, but for now this'll speed things up.
---
  yuminstall.py |    3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index 995c4a9..146b131 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1796,6 +1796,9 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
                  log.debug("no such group %s" %(group,))

      def selectPackage(self, pkg, *args):
+        if self.ayum.tsInfo.matchNaevr(name=pkg):
+            return 0
+
          try:
              mbrs = self.ayum.install(pattern=pkg)
              return len(mbrs)

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux