tags 512315 patch
thanks

On Mon, 19 Jan 2009 16:41:04 +0100 Evgeni Golov wrote:

> When trying to upgrade from Etch to Lenny, with irmp3 installed, one sees
> the following:
> 
> Preparing to replace irmp3 0.5.7pre2-1.1 (using 
> .../irmp3_0.5.7pre2-1.3_i386.deb) ...
> Stopping irmp3: invoke-rc.d: initscript irmp3, action "stop" failed.
> dpkg: warning - old pre-removal script returned error exit status 1
> dpkg - trying script from the new package instead ...
> Stopping irmp3: invoke-rc.d: initscript irmp3, action "stop" failed.
> dpkg: error processing /var/cache/apt/archives/irmp3_0.5.7pre2-1.3_i386.deb 
> (--unpack):
>  subprocess new pre-removal script returned error exit status 1
> update-rc.d: warning: /etc/init.d/irmp3 missing LSB information
> update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
> Starting irmp3: irmp3.
> Errors were encountered while processing:
>  /var/cache/apt/archives/irmp3_0.5.7pre2-1.3_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> It's related to #441454.

Please see the attached debdiff for a proposed NMU.

Regards
Evgeni

-- 
Bruce Schneier Fact Number 61:
When Bruce Schneier uses double ROT13 encryption, the ciphertext is
totally unbreakable.
diff -u irmp3-0.5.7pre2/debian/changelog irmp3-0.5.7pre2/debian/changelog
--- irmp3-0.5.7pre2/debian/changelog
+++ irmp3-0.5.7pre2/debian/changelog
@@ -1,3 +1,10 @@
+irmp3 (0.5.7pre2-1.4) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix upgrades from <=0.5.7pre2-1.1. (Closes: #512315)
+
+ -- Evgeni Golov <sarge...@die-welt.net>  Mon, 19 Jan 2009 17:20:56 +0100
+
 irmp3 (0.5.7pre2-1.3) unstable; urgency=low
 
   * Non-maintainer upload.
only in patch2:
unchanged:
--- irmp3-0.5.7pre2.orig/debian/prerm
+++ irmp3-0.5.7pre2/debian/prerm
@@ -0,0 +1,17 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "failed-upgrade" -a -n "$2" ]; then
+       if dpkg --compare-versions $2 le 0.5.7pre2-1.1; then
+               start-stop-daemon --stop --quiet --oknodo \
+                       --exec /usr/sbin/irmp3d
+               exit 0
+       fi
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Attachment: pgpNjpzkk6Dgk.pgp
Description: PGP signature

Reply via email to