[Pkg-libvirt-commits] [libvirt] 04/06: Force capability refresh on upgrades

Guido Guenther agx at moszumanska.debian.org
Mon Apr 27 12:18:22 UTC 2015


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

agx pushed a commit to annotated tag debian/1.2.14-3
in repository libvirt.

commit 2cc6d66f1c3f2c10f6a5e5d5aace2553ad9a3b1d
Author: Guido Günther <agx at sigxcpu.org>
Date:   Fri Feb 6 15:38:34 2015 +0100

    Force capability refresh on upgrades
    
    This makes sure we refresh the capabilities at least once when upgrading
    from wheezy.
    
    Closes: #731815
---
 debian/libvirt-daemon-system.postinst | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/libvirt-daemon-system.postinst b/debian/libvirt-daemon-system.postinst
index 6d4bb40..2456739 100644
--- a/debian/libvirt-daemon-system.postinst
+++ b/debian/libvirt-daemon-system.postinst
@@ -108,6 +108,9 @@ case "$1" in
         if [ -d /run/systemd/system ] && systemctl status virtlockd.service >/dev/null; then
            systemctl reload virtlockd.service
         fi
+
+        # Force refresh of capabilties (#731815)
+        rm -f /var/cache/libvirt/qemu/capabilities/*.xml
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)

-- 
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