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

_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to