[Yum-devel] [PATCH] When getting the best packages, and we have an archlist, consider the desired arch(s).

Jesse Keating jkeating at redhat.com
Fri Mar 7 04:05:31 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, 3 insertions(+), 0 deletions(-)

diff --git a/yumdownloader.py b/yumdownloader.py
index 5252ad4..8e5f645 100755
--- a/yumdownloader.py
+++ b/yumdownloader.py
@@ -159,6 +159,9 @@ class YumDownloader(YumUtilBase):
             if toActOn:
                 if opts.source:
                     toDownload.extend(self.bestPackagesFromList(toActOn, 'src'))
+                elif opts.archlist:
+                    for arch in opts.archlist.split(','):
+                        toDownload.extend(self.bestPackagesFromList(toActOn, arch))
                 else:
                     toDownload.extend(self.bestPackagesFromList(toActOn))
                     
-- 
1.5.4.3




More information about the Yum-devel mailing list