tags 616577 + patch
thanks

Hi,

I have written and successfully tested the attached patch. If there are
no objections, I suggest applying it to the next upload.

Best regards

Alexander Kurtz
diff -Naur pango1.0-1.28.3.orig/debian/changelog pango1.0-1.28.3/debian/changelog
--- pango1.0-1.28.3.orig/debian/changelog	2011-01-13 00:04:25.000000000 +0100
+++ pango1.0-1.28.3/debian/changelog	2011-03-06 14:52:04.818002938 +0100
@@ -1,3 +1,10 @@
+pango1.0 (1.28.3-4.1) experimental; urgency=low
+  * Non-maintainer upload
+  * preinst: Check if /usr/share/doc/libpango1.0-0 actually is a symlink before
+    attempting to remove it. Closes: #616577.
+
+ -- Alexander Kurtz <kurtz.a...@googlemail.com>  Sun, 06 Mar 2011 13:48:33 +0100
+
 pango1.0 (1.28.3-4) experimental; urgency=low
 
   * Switch to source format 3.0 (quilt).
diff -Naur pango1.0-1.28.3.orig/debian/libpango1.0-0.preinst pango1.0-1.28.3/debian/libpango1.0-0.preinst
--- pango1.0-1.28.3.orig/debian/libpango1.0-0.preinst	2011-01-11 02:26:22.000000000 +0100
+++ pango1.0-1.28.3/debian/libpango1.0-0.preinst	2011-03-06 14:54:29.290308829 +0100
@@ -2,7 +2,11 @@
 set -e
 
 if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl 1.28.3-4; then
-    rm -f /usr/share/doc/libpango1.0-0
+    # Check if /usr/share/doc/libpango1.0-0 actually is a symlink before
+    # attempting to remove it. Closes: #616577.
+    if [ -L "/usr/share/doc/libpango1.0-0" ]; then
+        rm -f "/usr/share/doc/libpango1.0-0"
+    fi
 fi
 
 #DEBHELPER#

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to