From 8c3f76674f62b05dffdcff672c6765cbb52d4923 Mon Sep 17 00:00:00 2001 From: James Antill Date: Dec 27 2007 22:32:59 +0000 Subject: - Fix for yum-priorities killing pirut. - Resolves: rhbz#421961 --- diff --git a/yum-utils-1.1.9-prio-fix.patch b/yum-utils-1.1.9-prio-fix.patch new file mode 100644 index 0000000..8b12f57 --- /dev/null +++ b/yum-utils-1.1.9-prio-fix.patch @@ -0,0 +1,13 @@ +diff -rup yum-utils-1.1.9/plugins/priorities/priorities.py yum-utils-1.1.9-prio-fix/plugins/priorities/priorities.py +--- yum-utils-1.1.9/plugins/priorities/priorities.py 2007-12-07 03:59:11.000000000 -0500 ++++ yum-utils-1.1.9-prio-fix/plugins/priorities/priorities.py 2007-12-27 17:27:46.000000000 -0500 +@@ -85,7 +85,7 @@ def exclude_hook(conduit): + + # Check whether the user specified the --samearch option. + opts, commands = conduit.getCmdLine() +- if opts.samearch: ++ if opts and opts.samearch: + only_samearch = True + + cnt = 0 +Only in yum-utils-1.1.9-prio-fix/plugins/priorities: priorities.py~ diff --git a/yum-utils.spec b/yum-utils.spec index 4f0e6f3..4268b33 100644 --- a/yum-utils.spec +++ b/yum-utils.spec @@ -5,6 +5,7 @@ Release: 1%{?dist} License: GPL Group: Development/Tools Source: http://linux.duke.edu/yum/download/yum-utils/%{name}-%{version}.tar.gz +Patch0: yum-utils-1.1.9-prio-fix.patch URL: http://linux.duke.edu/yum/download/yum-utils/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -197,6 +198,7 @@ metadata file in repositories. It is used to simplify distribution upgrade hangu %prep %setup -q +%patch0 -p1 %install rm -rf $RPM_BUILD_ROOT @@ -348,6 +350,10 @@ fi %changelog +* Thu Dec 27 2007 James Antill +- Fix for yum-priorities killing pirut. +- Resolves: rhbz#421961 + * Fri Dec 7 2007 Tim Lauridsen - mark as 1.1.9 * Fri Oct 26 2007 Seth Vidal