FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 11-30-2009, 03:25 PM
Radek Vykydal
 
Default 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
 

Thread Tools




All times are GMT. The time now is 07:13 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org