diff options
Diffstat (limited to 'debian/libxbase64-1.postinst')
-rw-r--r-- | debian/libxbase64-1.postinst | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/debian/libxbase64-1.postinst b/debian/libxbase64-1.postinst index fe67044..4ad8b6a 100644 --- a/debian/libxbase64-1.postinst +++ b/debian/libxbase64-1.postinst @@ -24,15 +24,8 @@ case "$1" in configure) # Replace documentation directory with symlink - if [ -d /usr/share/doc/libxbase64-1 ] && [ ! -L /usr/share/doc/libxbase64-1 ]; then - if rmdir /usr/share/doc/libxbase64-1 2>/dev/null; then - ln -sf libxbase64-doc /usr/share/doc/libxbase64-1 - else - echo "Remove nonempty doc directory to doc/libxbase64-1.bak" - mv /usr/share/doc/libxbase64-1 /usr/share/doc/libxbase64-1.bak - ln -sf libxbase64-doc /usr/share/doc/libxbase64-1 - fi - fi + dpkg-maintscript-helper dir_to_symlink /usr/share/doc/libxbase64-1 /usr/share/doc/libxbase64-doc 3.1.2-4 -- "$@" + ;; abort-upgrade|abort-remove|abort-deconfigure) |