Fix pkcon get-updates.

This commit is contained in:
Richard Hughes 2011-05-05 11:51:48 +01:00
parent acfcc24813
commit c52d0c1cbe
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 953c0980265b2b0120bc1337d1a2061f47a1373d Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard@hughsie.com>
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

View File

@ -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 <rhughes@redhat.com> - 0.6.14-2
- Fix pkcon get-updates.
* Wed May 04 2011 Richard Hughes <rhughes@redhat.com> - 0.6.14-1
- New upstream release.
- Add annotations to make PackageKit-glib GIR usable