//  
BlueQuartz.US Forum Index HOME
BlueQuartz.US
Open Source Info for Open Source Users
RegisterRegister 
MemberlistMemberlist
UsergroupsUsergroups
FAQFAQ   
SearchSearch
SubscriptionsSubscriptions
ProfileProfile   
Private messagesPrivate messages   
Log inLog in 
Are You Paying More Than Wholesale For Your Names?   Join the Hottest Domain Name Reseller Program Around!

 
Post new topic   Reply to topic    BlueQuartz.US Forum Index -> Yum Development
 [PATCH] accept "*" to mean all arches Previous Topic
Next Topic
Message Author
PostPosted: Tue Jul 27, 2010 1:08 pm    
Subject: [PATCH] accept "*" to mean all arches
Reply with quote  
Dennis Gregorovic

From: Dennis Gregorovic <dgregor@x86-014.build.bos.redhat.com>

---
repodiff.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/repodiff.py b/repodiff.py
index 233f534..b51587a 100755
--- a/repodiff.py
+++ b/repodiff.py
@@ -19,6 +19,7 @@ import sys
import datetime
import os
import locale
+import rpmUtils.arch
from yum.i18n import to_unicode

from optparse import OptionParser
@@ -52,7 +53,12 @@ class DiffYum(yum.YumBase):
self.repos.enableRepo(repoid)
# setup the repo dirs/etc
self.doRepoSetup(thisrepo=repoid)
- self._getSacks(archlist=self.dy_archlist, thisrepo=repoid)
+ if '*' in self.dy_archlist:
+ # Include all known arches
+ archlist = list(set(rpmUtils.arch.arches.keys()).union(set(rpmUtils.arch.arches.values())))
+ else:
+ archlist = self.dy_archlist
+ self._getSacks(archlist=archlist, thisrepo=repoid)

def dy_diff(self):
add = []
--
1.5.5.6

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BlueQuartz.US Forum Index -> Yum Development All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group