From 93d41be5ef96e17b5a9de60b3b69deda598a8682 Mon Sep 17 00:00:00 2001 From: kytv Date: Sat, 6 Aug 2011 01:16:02 +0000 Subject: [PATCH] As of -3 (debian revision 3) the javadocs are installed to /usr/share/i2p/docs/javadoc and /usr/share/doc/i2p-doc/api is a symbolic link to this location. To ensure the link can be created, we check to see if /usr/share/doc/i2p-doc/api is a folder. If it is, it gets removed. --- debian/i2p-doc.preinst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/i2p-doc.preinst b/debian/i2p-doc.preinst index 8ab8fef765..85a2c4575a 100644 --- a/debian/i2p-doc.preinst +++ b/debian/i2p-doc.preinst @@ -6,6 +6,10 @@ if [ ! -z $2 ]; then test -d /usr/share/doc/i2p-doc \ && rm -rf /usr/share/doc/i2p-doc fi + if dpkg --compare-versions $2 lt 0.8.7-3; then + test -d /usr/share/doc/i2p-doc/api \ + && rm -rf /usr/share/doc/i2p-doc/api + fi fi #DEBHELPER#