summaryrefslogtreecommitdiff
path: root/debian/libxbase64-dev.postinst
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-04-09 11:10:55 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-04-09 11:10:55 +0200
commitf9e60cb57104f4bd2e3170af4e60e0cba56d42ac (patch)
treec615089e4b5e94346f0504baa6d5415e7a555ffa /debian/libxbase64-dev.postinst
parent4295e9ebb56a46850e926cc0fcc1f753f19385e4 (diff)
Use dpkg-maintscript-helper dir_to_symlink at debian/*.postinst
Diffstat (limited to 'debian/libxbase64-dev.postinst')
-rw-r--r--debian/libxbase64-dev.postinst10
1 files changed, 1 insertions, 9 deletions
diff --git a/debian/libxbase64-dev.postinst b/debian/libxbase64-dev.postinst
index d684003..4b2aaf7 100644
--- a/debian/libxbase64-dev.postinst
+++ b/debian/libxbase64-dev.postinst
@@ -24,15 +24,7 @@ case "$1" in
configure)
# Replace documentation directory with symlink
- if [ -d /usr/share/doc/libxbase64-dev ] && [ ! -L /usr/share/doc/libxbase64-dev ]; then
- if rmdir /usr/share/doc/libxbase64-dev 2>/dev/null; then
- ln -sf libxbase64-doc /usr/share/doc/libxbase64-dev
- else
- echo "Remove nonempty doc directory to doc/libxbase64-1.bak"
- mv /usr/share/doc/libxbase64-dev /usr/share/doc/libxbase64-dev.bak
- ln -sf libxbase64-doc /usr/share/doc/libxbase64-dev
- fi
- fi
+ dpkg-maintscript-helper dir_to_symlink /usr/share/doc/libxbase64-dev /usr/share/doc/libxbase64-doc 3.1.2-4 -- "$@"
;;
abort-upgrade|abort-remove|abort-deconfigure)