Skip to content
Snippets Groups Projects
Commit d16ae50b authored by Guido Günther's avatar Guido Günther
Browse files

Drop libvirt-bin upgrade handling

libvirt-bin was dropped before Jessie
parent e0e0a428
No related merge requests found
......@@ -87,8 +87,6 @@ Depends:
${shlibs:Depends},
libvirt0 (= ${binary:Version}),
Section: admin
Replaces: libvirt-bin (<< 1.2.6-1~)
Conflicts: libvirt-bin (<< 1.2.6-1~)
Suggests:
libvirt-daemon,
Description: Programs for the libvirt library
......@@ -196,8 +194,6 @@ Description: Virtualization daemon ZFS storage driver
Package: libvirt-daemon-system
Architecture: any
# Needed to clean up old libvirt-bin cruft, can be removed post jessie
Pre-Depends: init-system-helpers (>= 1.18~)
Depends:
${misc:Depends},
${shlibs:Depends},
......@@ -221,8 +217,6 @@ Suggests: radvd, auditd, systemtap, systemd, apparmor,
nfs-common, zfsutils, pm-utils
Breaks: avahi-daemon (<< 0.6.31-3~),
systemd-sysv (<< 224-1~)
Replaces: libvirt-bin (<< 1.2.7-4~)
Conflicts: libvirt-bin (<< 1.2.6-1~)
Description: Libvirt daemon configuration files
Libvirt is a C toolkit to interact with the virtualization capabilities
of recent versions of Linux (and other OSes). The library aims at providing
......@@ -260,7 +254,6 @@ Package: libvirt-dev
Architecture: any
Section: libdevel
Depends: ${misc:Depends}, libvirt0 (= ${binary:Version}), libxen-dev [i386 amd64 armhf arm64]
Replaces: libvirt-bin (<< 1.2.0~)
Recommends: pkg-config
Description: development files for the libvirt library
Libvirt is a C toolkit to interact with the virtualization capabilities
......
#!/bin/sh
# preinst script for libvirt-daemon-system
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
install|upgrade)
# When renaming the .service file, systemd might become confused, we
# need to ensure that the libvirtd daemon is fully stopped before
# trying to restart it again. (Bug: #730604)
if dpkg --compare-versions "$2" lt "1.2.6-1~"; then
if [ -d /run/systemd/system ]; then
[ ! -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
deb-systemd-helper unmask libvirt-bin.service >/dev/null
fi
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment