tags 687857 + patch
thanks

I've prepared an NMU patch for linux-atm (versioned as 1:2.5.1-1.5).
It seems that the postinst for libatm1-dev wrongly refered to
/usr/share/doc/atm-tools, so like the postinst for atm-tools itself.

I have not yet done any further action but can upload the NMU.

Regards,
Salvatore
diff -Nru linux-atm-2.5.1/debian/changelog linux-atm-2.5.1/debian/changelog
--- linux-atm-2.5.1/debian/changelog	2012-07-03 03:03:50.000000000 +0200
+++ linux-atm-2.5.1/debian/changelog	2012-09-17 17:37:08.000000000 +0200
@@ -1,3 +1,14 @@
+linux-atm (1:2.5.1-1.5) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Correct directory in libatm1-dev.postinst.
+    Correct the directory checked for the directory symlink migration to be
+    /usr/share/doc/libatm1-dev for the libatm1-dev binary package. It
+    wrongly refered to /usr/share/doc/atm-tools.
+    Check now for versions before 1:2.5.1-1.5. (Closes: #687857)
+
+ -- Salvatore Bonaccorso <car...@debian.org>  Mon, 17 Sep 2012 17:36:38 +0200
+
 linux-atm (1:2.5.1-1.4) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru linux-atm-2.5.1/debian/libatm1-dev.postinst linux-atm-2.5.1/debian/libatm1-dev.postinst
--- linux-atm-2.5.1/debian/libatm1-dev.postinst	2011-10-30 15:35:30.000000000 +0100
+++ linux-atm-2.5.1/debian/libatm1-dev.postinst	2012-09-17 17:37:08.000000000 +0200
@@ -3,12 +3,15 @@
 upgrade_quirks() {
   [ "$2" ] || return 0
 
-  dpkg --compare-versions $2 lt 1:2.5.1-1.3 || return 0
+  dpkg --compare-versions $2 lt 1:2.5.1-1.5 || return 0
 
   # replaced by a symlink in 1:2.5.1-1.3, but dpkg fails to do it on upgrades
-  if [ -d /usr/share/doc/atm-tools -a ! -L /usr/share/doc/atm-tools ] ; then
-    rmdir /usr/share/doc/atm-tools
-    ln -s /usr/share/doc/libatm1 /usr/share/doc/atm-tools
+  # furthermore the postinst had a bug in 1:2.5.1-1.4 handling wrongly the
+  # /usr/share/doc/libatm1-dev directory (it refered to /usr/share/doc/atm-tools
+  # previously
+  if [ -d /usr/share/doc/libatm1-dev -a ! -L /usr/share/doc/libatm1-dev ] ; then
+    rmdir /usr/share/doc/libatm1-dev
+    ln -s /usr/share/doc/libatm1 /usr/share/doc/libatm1-dev
   fi
 
   return 0

Attachment: signature.asc
Description: Digital signature

Reply via email to