Followup-For: Bug #685469
Control: tag -1 patch

Hi,

I'm attaching my sugggested patch to fix this problem. The fixup should
only be performed by ekg2.postinst - ekg2-core should have nothing to do
as everything is fine within this package.

Successfully tested in piuparts tests:

  sid install, purge
  sid install old, upgrade to new, purge
  squeeze, install from squeeze-backports, distupgrade to wheezy, purge

Andreas
diff -Nru ekg2-0.3.1/debian/changelog ekg2-0.3.1/debian/changelog
--- ekg2-0.3.1/debian/changelog	2012-08-21 23:01:07.000000000 +0200
+++ ekg2-0.3.1/debian/changelog	2013-02-03 04:38:39.000000000 +0100
@@ -1,3 +1,11 @@
+ekg2 (1:0.3.1-2.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Add ekg2.postinst script to perform the directory to symlink
+    transformation of /usr/share/doc/ekg2.  (Closes: #685469)
+
+ -- Andreas Beckmann <a...@debian.org>  Sun, 03 Feb 2013 03:42:00 +0100
+
 ekg2 (1:0.3.1-2) unstable; urgency=medium
 
   * RC-bugfix upload aimed at testing
diff -Nru ekg2-0.3.1/debian/ekg2.postinst ekg2-0.3.1/debian/ekg2.postinst
--- ekg2-0.3.1/debian/ekg2.postinst	1970-01-01 01:00:00.000000000 +0100
+++ ekg2-0.3.1/debian/ekg2.postinst	2013-02-03 04:37:43.000000000 +0100
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -e
+
+docdir="/usr/share/doc/ekg2"
+doclnk="ekg2-core"
+
+if [ "$1" = "configure" ]; then
+	if [ ! -L "$docdir" ] && [ -d "$docdir" ]; then
+		rmdir "$docdir"
+		ln -s "$doclnk" "$docdir"
+	fi
+fi
+
+#DEBHELPER#
diff -Nru ekg2-0.3.1/debian/patches/autofoo.patch ekg2-0.3.1/debian/patches/autofoo.patch
diff -Nru ekg2-0.3.1/debian/patches/series ekg2-0.3.1/debian/patches/series

Reply via email to