|
|
|
[PATCH] accept "*" to mean all arches
|
Previous Topic
Next Topic
|
| Message |
Author |
Posted: Tue Jul 27, 2010 1:08 pm Subject: [PATCH] accept "*" to mean all arches |
|
|
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 |
|
 |
|
|
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
|