diff --git a/0001-yum-fix-a-failure-to-get-updates-caused-by-using-the.patch b/0001-yum-fix-a-failure-to-get-updates-caused-by-using-the.patch new file mode 100644 index 0000000..574ed4d --- /dev/null +++ b/0001-yum-fix-a-failure-to-get-updates-caused-by-using-the.patch @@ -0,0 +1,26 @@ +From 953c0980265b2b0120bc1337d1a2061f47a1373d Mon Sep 17 00:00:00 2001 +From: Richard Hughes +Date: Thu, 5 May 2011 11:44:17 +0100 +Subject: [PATCH] yum: fix a failure to get updates caused by using the rename + of pre_process + +--- + backends/yum/yumBackend.py | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/backends/yum/yumBackend.py b/backends/yum/yumBackend.py +index 92aa99b..45ed2ec 100755 +--- a/backends/yum/yumBackend.py ++++ b/backends/yum/yumBackend.py +@@ -2781,7 +2781,7 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage): + + md = self.updateMetadata + for pkg in unique(pkgs): +- if pkgfilter.pre_process(pkg): ++ if pkgfilter._filter_base(pkg): + # we pre-get the ChangeLog data so that the changes file is + # downloaded at GetUpdates time, not when we open the GUI + # get each element of the ChangeLog +-- +1.7.5 + diff --git a/PackageKit.spec b/PackageKit.spec index f2df3a7..54b4940 100644 --- a/PackageKit.spec +++ b/PackageKit.spec @@ -3,7 +3,7 @@ Summary: Package management service Name: PackageKit Version: 0.6.14 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ and LGPLv2+ URL: http://www.packagekit.org Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.bz2 @@ -14,6 +14,9 @@ Patch0: PackageKit-0.3.8-Fedora-Vendor.conf.patch # Fedora specific: the yum backend doesn't do time estimation correctly Patch1: PackageKit-0.4.4-Fedora-turn-off-time.conf.patch +# already upstream +Patch2: 0001-yum-fix-a-failure-to-get-updates-caused-by-using-the.patch + Requires: PackageKit-glib = %{version}-%{release} Requires: PackageKit-yum = %{version}-%{release} Requires: shared-mime-info @@ -246,6 +249,7 @@ user to restart the computer or remove and re-insert the device. %setup -q %patch0 -p1 -b .fedora %patch1 -p1 -b .no-time +%patch2 -p1 -b .fix-get-updates %build %configure \ @@ -460,6 +464,9 @@ update-mime-database %{_datadir}/mime &> /dev/null || : %{_includedir}/PackageKit/backend/*.h %changelog +* Thu May 05 2011 Richard Hughes - 0.6.14-2 +- Fix pkcon get-updates. + * Wed May 04 2011 Richard Hughes - 0.6.14-1 - New upstream release. - Add annotations to make PackageKit-glib GIR usable