Do not reinstall packages of the same NAEVR in upgrade (#495796)
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|