[PackageKit/f17] yum: don't perceive all updates as untrusted (#821015)

Nils Philippsen nphilipp at fedoraproject.org
Fri May 11 15:14:43 UTC 2012


commit 063002aa19eb3777bf2a58f46ac0a98ca0d139ce
Author: Nils Philippsen <nils at redhat.com>
Date:   Fri May 11 17:08:22 2012 +0200

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

 PackageKit-0.7.4-yum-untrusted.patch |   35 ++++++++++++++++++++++++++++++++++
 PackageKit.spec                      |    9 +++++++-
 2 files changed, 43 insertions(+), 1 deletions(-)
---
diff --git a/PackageKit-0.7.4-yum-untrusted.patch b/PackageKit-0.7.4-yum-untrusted.patch
new file mode 100644
index 0000000..51d1370
--- /dev/null
+++ b/PackageKit-0.7.4-yum-untrusted.patch
@@ -0,0 +1,35 @@
+From 9f4fb9fe5bf123c99c4325c7b2a7091f728c466b Mon Sep 17 00:00:00 2001
+From: Nils Philippsen <nils at 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
+
diff --git a/PackageKit.spec b/PackageKit.spec
index 30f3c35..0e6b8bf 100644
--- a/PackageKit.spec
+++ b/PackageKit.spec
@@ -3,7 +3,7 @@
 Summary:   Package management service
 Name:      PackageKit
 Version:   0.7.4
-Release:   1%{?dist}
+Release:   2%{?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
+Patch2:    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
+%patch2 -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 at redhat.com> - 0.7.4-2
+- yum: don't perceive all updates as untrusted (#821015)
+
 * Tue Apr 24 2012 Richard Hughes  <rhughes at redhat.com> - 0.7.4-1
 - New upstream release
 - Add GType's for packagekit-glib2 enumerations


More information about the scm-commits mailing list