[Pkg-libvirt-commits] [libvirt] 02/03: Force capability refresh on upgrades

Guido Guenther agx at moszumanska.debian.org
Fri Feb 6 16:37:45 UTC 2015


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

agx pushed a commit to annotated tag debian/1.2.9-9
in repository libvirt.

commit 1addae563a5881e46f933a34331a6fdb9a866bba
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 ff68fd3..5d3ebd0 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