[Yum-devel] [PATCH] When getting the best packages, consider the desired arch(s).
Jesse Keating
jkeating at redhat.com
Fri Mar 7 03:05:52 UTC 2008
If an arch isn't passed, it'll use the host arch, which negates
the desire of using a defined archlist.
---
yumdownloader.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/yumdownloader.py b/yumdownloader.py
index 5252ad4..1b47de2 100755
--- a/yumdownloader.py
+++ b/yumdownloader.py
@@ -160,7 +160,8 @@ class YumDownloader(YumUtilBase):
if opts.source:
toDownload.extend(self.bestPackagesFromList(toActOn, 'src'))
else:
- toDownload.extend(self.bestPackagesFromList(toActOn))
+ for arch in opts.archlist.split(','):
+ toDownload.extend(self.bestPackagesFromList(toActOn, arch))
# If the user supplies to --resolve flag, resolve dependencies for
# all packages
--
1.5.4.3
More information about the Yum-devel
mailing list