From 10bbe79a376bcc5deb3b9d5714a83c4fcc24a5ba Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Mar 06 2008 20:36:54 +0000 Subject: archlist patch for jkeating --- diff --git a/yum-downloader-archlist.patch b/yum-downloader-archlist.patch new file mode 100644 index 0000000..9811978 --- /dev/null +++ b/yum-downloader-archlist.patch @@ -0,0 +1,23 @@ +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() + \ No newline at end of file diff --git a/yum-utils.spec b/yum-utils.spec index 509c302..4055f1e 100644 --- a/yum-utils.spec +++ b/yum-utils.spec @@ -1,10 +1,11 @@ Summary: Utilities based around the yum package manager Name: yum-utils Version: 1.1.11 -Release: 1%{?dist} +Release: 2%{?dist} License: GPL Group: Development/Tools Source: http://linux.duke.edu/yum/download/yum-utils/%{name}-%{version}.tar.gz +Patch0: yum-downloader-archlist.patch URL: http://linux.duke.edu/yum/download/yum-utils/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -228,6 +229,7 @@ gpg checking to be disabled. %prep %setup -q +%patch0 -p1 %install rm -rf $RPM_BUILD_ROOT