yum: don't perceive all updates as untrusted (#821015)

This commit is contained in:
Nils Philippsen 2012-05-11 17:08:22 +02:00
parent 6d1b242a18
commit 52a1c79b13
2 changed files with 43 additions and 1 deletions

View File

@ -0,0 +1,35 @@
From 9f4fb9fe5bf123c99c4325c7b2a7091f728c466b Mon Sep 17 00:00:00 2001
From: Nils Philippsen <nils@redhat.com>
Date: Thu, 26 Apr 2012 17:39:43 +0200
Subject: [PATCH] yum: don't perceive all updates as untrusted
Consider all packages as signed during simulation. Fixes rhbz#814945.
---
backends/yum/yumBackend.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/backends/yum/yumBackend.py b/backends/yum/yumBackend.py
index f800890..afd5127 100755
--- a/backends/yum/yumBackend.py
+++ b/backends/yum/yumBackend.py
@@ -1975,7 +1975,7 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
self.status(STATUS_RUNNING)
txmbrs = []
- self._set_only_trusted(only_trusted)
+ self._set_only_trusted(only_trusted or simulate)
for package_id in package_ids:
grp = self._is_meta_package(package_id)
@@ -2314,7 +2314,7 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
self.percentage(0)
self.status(STATUS_RUNNING)
- self._set_only_trusted(only_trusted)
+ self._set_only_trusted(only_trusted or simulate)
txmbrs = []
try:
--
1.7.10.1

View File

@ -3,7 +3,7 @@
Summary: Package management service
Name: PackageKit
Version: 0.7.4
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv2+ and LGPLv2+
URL: http://www.packagekit.org
Source0: http://www.packagekit.org/releases/%{name}-%{version}.tar.xz
@ -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
# Upstreamed: don't perceive all updates as untrusted
Patch3: PackageKit-0.7.4-yum-untrusted.patch
Requires: PackageKit-glib = %{version}-%{release}
Requires: PackageKit-backend
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
%patch3 -p1 -b .yum-untrusted
%build
%configure \
@ -450,6 +454,9 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
%{_libdir}/pkgconfig/packagekit-plugin.pc
%changelog
* Fri May 11 2012 Nils Philippsen <nils@redhat.com> - 0.7.4-3
- yum: don't perceive all updates as untrusted (#821015)
* Wed Apr 25 2012 Rex Dieter <rdieter@fedoraproject.org> 0.7.4-2
- track sonames so abi bumps aren't a surprise
- -qt-devel: fix dir ownership