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 > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 03-29-2010, 05:56 PM
Chris Lumens
 
Default Don't add duplicates to the transaction set (#575878, jantill).

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)
--
1.6.5.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-30-2010, 07:29 AM
Hans de Goede
 
Default Don't add duplicates to the transaction set (#575878, jantill).

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 12:26 PM.

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