[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#776761: marked as done (unblock: live-tools/4.0.2-1.1)



Your message dated Fri, 06 Feb 2015 23:23:05 +0100
with message-id <54D53EC9.3060903@thykier.net>
and subject line Re: Bug#776761: unblock: live-tools/4.0.2-1.1
has caused the Debian Bug report #776761,
regarding unblock: live-tools/4.0.2-1.1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
776761: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776761
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@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 <gaudenz@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)

--- End Message ---
--- Begin Message ---
On 2015-02-01 13:45, Gaudenz Steinlin wrote:
> Package: release.debian.org
> Severity: normal
> User: release.debian.org@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
> 
> [...]

Unblocked, thanks.

~Niels

--- End Message ---

Reply to: