Package: release.debian.org Severity: normal User: release.debian....@packages.debian.org Usertags: unblock
Please unblock package live-tools This fixes bug #774915. live-tools removes a diversion of /usr/bin/uptime. The removal has to be done in postinst instead of preinst because the new version of the package which no longer contains live-tools version of uptime needs to be unpacked first. Otherwise dpkg-divert errors out because it would overwrite the old version of uptime still belonging to live-tools. unblock live-tools/4.0.2-1.1 -- System Information: Debian Release: 8.0 APT prefers testing-proposed-updates APT policy: (500, 'testing-proposed-updates'), (500, 'testing'), (100, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -Nru live-tools-4.0.2/debian/changelog live-tools-4.0.2/debian/changelog --- live-tools-4.0.2/debian/changelog 2014-12-10 10:04:17.000000000 +0100 +++ live-tools-4.0.2/debian/changelog 2015-02-01 01:53:42.000000000 +0100 @@ -1,3 +1,10 @@ +live-tools (4.0.2-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Move removal of diversion to postinst (Closes: #774915) + + -- Gaudenz Steinlin <gaud...@debian.org> Sun, 01 Feb 2015 01:53:17 +0100 + live-tools (4.0.2-1) unstable; urgency=low * Removing left-over divertion on procps when upgrading from before diff -Nru live-tools-4.0.2/debian/live-tools.postinst live-tools-4.0.2/debian/live-tools.postinst --- live-tools-4.0.2/debian/live-tools.postinst 1970-01-01 01:00:00.000000000 +0100 +++ live-tools-4.0.2/debian/live-tools.postinst 2015-02-01 01:40:14.000000000 +0100 @@ -0,0 +1,14 @@ +#!/bin/sh +set -e + +if [ "$1" = "configure" ] +then + # upgrade from live-tools >> 4.0.1 + if dpkg-divert --package live-tools --list | grep -F /usr/bin/uptime.orig.procps + then + dpkg-divert --package live-tools --quiet --remove --rename --divert /usr/bin/uptime.orig.procps /usr/bin/uptime + dpkg-divert --package live-tools --quiet --remove --rename --divert /usr/share/man/man1/uptime.orig.procps.1.gz /usr/share/man/man1/uptime.1.gz + fi +fi + +#DEBHELPER# diff -Nru live-tools-4.0.2/debian/live-tools.preinst live-tools-4.0.2/debian/live-tools.preinst --- live-tools-4.0.2/debian/live-tools.preinst 2014-12-10 10:04:17.000000000 +0100 +++ live-tools-4.0.2/debian/live-tools.preinst 2015-02-01 01:37:39.000000000 +0100 @@ -8,12 +8,6 @@ dpkg-divert --package live-tools --quiet --add --rename --divert /usr/sbin/update-initramfs.orig.initramfs-tools /usr/sbin/update-initramfs dpkg-divert --package live-tools --quiet --add --rename --divert /usr/share/man/man8/update-initramfs.orig.initramfs-tools.8.gz /usr/share/man/man8/update-initramfs.8.gz - # upgrade from live-tools >> 4.0.1 - if [ -e /usr/bin/uptime.orig.procps ] - then - dpkg-divert --package live-tools --quiet --remove --rename --divert /usr/bin/uptime.orig.procps /usr/bin/uptime - dpkg-divert --package live-tools --quiet --remove --rename --divert /usr/share/man/man1/uptime.orig.procps.1.gz /usr/share/man/man1/uptime.1.gz - fi ;; abort-upgrade)