summaryrefslogtreecommitdiff
path: root/debian/argyll-dbg.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/argyll-dbg.postinst')
-rw-r--r--debian/argyll-dbg.postinst16
1 files changed, 2 insertions, 14 deletions
diff --git a/debian/argyll-dbg.postinst b/debian/argyll-dbg.postinst
index 88e56e4..8618fb3 100644
--- a/debian/argyll-dbg.postinst
+++ b/debian/argyll-dbg.postinst
@@ -22,21 +22,9 @@ set -e
case "$1" in
- configure)
+ configure|abort-upgrade|abort-remove|abort-deconfigure)
# Replace documentation directory with symlink
- if [ -d /usr/share/doc/argyll-dbg ] && [ ! -L /usr/share/doc/argyll-dbg ]; then
- if rmdir /usr/share/doc/argyll-dbg 2>/dev/null; then
- ln -sf argyll-doc /usr/share/doc/argyll-dbg
- else
- echo "Remove nonempty doc directory to doc/argyll-dbg.bak"
- mv /usr/share/doc/argyll-dbg /usr/share/doc/argyll-dbg.bak
- ln -sf argyll-doc /usr/share/doc/argyll-dbg
- fi
- fi
- ;;
-
- abort-upgrade|abort-remove|abort-deconfigure)
- exit 0
+ dpkg-maintscript-helper dir_to_symlink /usr/share/doc/argyll-dbg argyll-doc -- "$@"
;;
*)