[yum-git] yumdownloader.py

Seth Vidal skvidal at linux.duke.edu
Thu Mar 6 19:36:26 UTC 2008


 yumdownloader.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 2fd2ec0e136d05a3a758b65c3ab0890eb25b4f66
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Thu Mar 6 14:34:44 2008 -0500

    merge jesse keatings patch for --archlist in yumdownloader

diff --git a/yumdownloader.py b/yumdownloader.py
index ebfed81..5252ad4 100755
--- a/yumdownloader.py
+++ b/yumdownloader.py
@@ -226,6 +226,8 @@ class YumDownloader(YumUtilBase):
             # if '--source' is used the add src to the archlist
             if opts.source:
                 archlist = rpmUtils.arch.getArchList() + ['src']    
+            elif opts.archlist:
+                archlist = opts.archlist.split(',')                
             else:
                 archlist = rpmUtils.arch.getArchList()
             self._getSacks(archlist=archlist)
@@ -250,7 +252,8 @@ class YumDownloader(YumUtilBase):
           help='resolve dependencies and download required packages')
         parser.add_option("--source", default=False, dest="source", action="store_true",
           help='operate on source packages')
-        
+        parser.add_option("--archlist",
+          help="only download packages of certain architecture(s)")        
 if __name__ == '__main__':
     util = YumDownloader()
         



More information about the Yum-cvs-commits mailing list