[Pkg-libvirt-commits] [libvirt] 06/06: Don't try to stop libvirt-bin if it's already gone

Guido Guenther agx at moszumanska.debian.org
Thu Aug 7 12:10:17 UTC 2014


This is an automated email from the git hooks/post-receive script.

agx pushed a commit to branch master
in repository libvirt.

commit 2f486c531d5a020d7e089cb6a84759d7cba60c6e
Author: Guido Günther <agx at sigxcpu.org>
Date:   Thu Aug 7 13:16:53 2014 +0200

    Don't try to stop libvirt-bin if it's already gone
---
 debian/changelog                     | 10 ++++++++++
 debian/libvirt-daemon-system.preinst |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 521c9aa..8a91c16 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+libvirt (1.2.7-5~1.gbpbdae16) UNRELEASED; urgency=medium
+
+  ** SNAPSHOT build @bdae16d287d2739d693bba44382640214bef1dae **
+
+  * [06d457c] Bump comparison version
+    so this applies to current failed upgrades too.
+  * [bdae16d] Remove another obsolete conffile (Closes: #757332)
+
+ -- Guido Günther <agx at sigxcpu.org>  Thu, 07 Aug 2014 12:01:41 +0200
+
 libvirt (1.2.7-4) unstable; urgency=medium
 
   * [5e71896] Move networking configuration to libvirt-daemon-system too
diff --git a/debian/libvirt-daemon-system.preinst b/debian/libvirt-daemon-system.preinst
index 25e18e9..e4726da 100644
--- a/debian/libvirt-daemon-system.preinst
+++ b/debian/libvirt-daemon-system.preinst
@@ -21,7 +21,7 @@ case "$1" in
 	# trying to restart it again. (Bug: #730604)
 	if dpkg --compare-versions "$2" lt "1.2.7-5~"; then
 	    if [ -d /run/systemd/system ]; then
-	        invoke-rc.d libvirt-bin stop
+	        [ ! -f /lib/systemd/system/libvirt-bin.service ] || invoke-rc.d libvirt-bin stop
 	    fi
 	    # Remove everything we know about libvirt-bin.service
 	    deb-systemd-helper purge libvirt-bin.service >/dev/null

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt.git



More information about the Pkg-libvirt-commits mailing list