[PATCH rhel5] Do not reinstall packages of the same NAEVR in upgrade (#495796)

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

 



Patch by Greg Bailey. The patch is tested.
---
 yuminstall.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index cb9ca28..67cffe7 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -465,6 +465,10 @@ class YumSorter(yum.YumBase):
                 if self.tsInfo.exists(dep.pkgtup):
                     pkgs = self.tsInfo.getMembers(pkgtup=dep.pkgtup)
                     member = self.bestPackagesFromList(pkgs)[0]
+                elif self.rpmdb.installed(name = dep.name, arch = dep.arch,
+                                          epoch = dep.epoch, ver = dep.version, rel = dep.release):
+                     # If the dependency NAEVR matches what's already installed, skip it
+                     continue
                 else:
                     if dep.name != req[0]:
                         log.info("adding %s for %s, required by %s" %(dep.name, req[0], txmbr.name))
-- 
1.6.0.6

_______________________________________________
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