From c7c0a6631e99ecfc90f2cd491a4c25cf9fa675d6 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Aug 01 2006 21:00:56 +0000 Subject: add patch for repoquery --- diff --git a/yum-utils-0.6-repoquery-newapi.patch b/yum-utils-0.6-repoquery-newapi.patch new file mode 100644 index 0000000..8744f50 --- /dev/null +++ b/yum-utils-0.6-repoquery-newapi.patch @@ -0,0 +1,19 @@ +--- yum-utils-0.6/repoquery.py.foo 2006-08-01 10:23:51.000000000 -0400 ++++ yum-utils-0.6/repoquery.py 2006-08-01 10:28:24.000000000 -0400 +@@ -30,7 +30,6 @@ + import yum.config + import yum.Errors + import yum.packages +-import repomd.mdErrors + from rpmUtils.arch import getArchList + from rpmUtils.miscutils import formatRequire + from yum.misc import getCacheDir +@@ -325,7 +324,7 @@ + try: + exact, match, unmatch = yum.packages.parsePackages(self.returnPkgList(), [name], casematch=1) + pkgs = exact + match +- except repomd.mdErrors.PackageSackError, err: ++ except yum.Errors.PackageSackError, err: + self.errorlog(0, err) + return self.queryPkgFactory(pkgs) + diff --git a/yum-utils.spec b/yum-utils.spec index 5e039af..1739e5f 100644 --- a/yum-utils.spec +++ b/yum-utils.spec @@ -1,11 +1,12 @@ Summary: Utilities based around the yum package manager Name: yum-utils Version: 0.6 -Release: 4%{?dist} +Release: 5%{?dist} License: GPL Group: Development/Tools Source: http://linux.duke.edu/yum/download/yum-utils/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-fastestmirror-newapi.patch +Patch1: yum-utils-0.6-repoquery-newapi.patch URL: http://linux.duke.edu/yum/download/yum-utils/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -106,6 +107,7 @@ the packages and not install/update them. %prep %setup -q %patch0 +%patch1 -p1 %install rm -rf $RPM_BUILD_ROOT @@ -198,6 +200,9 @@ fi /usr/lib/yum-plugins/downloadonly.* %changelog +* Tue Aug 1 2006 Bill Nottingham +- add patch to fix repoqeury to work with current yum api + * Thu Jul 28 2006 Luke Macken - Add patch to fix fastestmirror to work with new yum api