[PackageKit] Don't restart PackageKit after updating itself

Kalev Lember kalev at fedoraproject.org
Wed May 21 13:53:02 UTC 2014


commit 8dada2e58b3f2665eb59b9e02d9a7047bd362622
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Wed May 21 15:23:50 2014 +0200

    Don't restart PackageKit after updating itself
    
    If PackageKit is currently updating packages, killing the update process
    causes the whole transaction to fail.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730451

 PackageKit.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/PackageKit.spec b/PackageKit.spec
index 8d9e758..5a54b3a 100644
--- a/PackageKit.spec
+++ b/PackageKit.spec
@@ -9,7 +9,7 @@
 Summary:   Package management service
 Name:      PackageKit
 Version:   0.9.2
-Release:   2%{?dist}
+Release:   3%{?dist}
 License:   GPLv2+ and LGPLv2+
 URL:       http://www.freedesktop.org/software/PackageKit/
 Source0:   http://www.freedesktop.org/software/PackageKit/releases/%{name}-%{version}.tar.xz
@@ -239,7 +239,9 @@ popd > /dev/null
 %systemd_preun packagekit-offline-update.service packagekit.service
 
 %postun
-%systemd_postun_with_restart packagekit-offline-update.service packagekit.service
+# Reload the systemd configuration but do _not_ restart the daemon. Killing the
+# update process while it's updating packages causes the transaction to fail.
+%systemd_postun packagekit-offline-update.service packagekit.service
 
 %postun glib -p /sbin/ldconfig
 
@@ -346,6 +348,9 @@ popd > /dev/null
 
 
 %changelog
+* Wed May 21 2014 Kalev Lember <kalevlember at gmail.com> - 0.9.2-3
+- Don't restart PackageKit after updating itself
+
 * Tue May 13 2014 Kalev Lember <kalevlember at gmail.com> - 0.9.2-2
 - Fix parallel kernel package installation
 


More information about the scm-commits mailing list