debian: remove old symlinks to /usr/share/doc

(From NMU'ed change)

Addresses-Debian-Bug: #698879

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debian-1.42.9
Theodore Ts'o 2013-08-11 11:49:01 -04:00
parent 67b3721dc4
commit 7dc67c0ad5
3 changed files with 47 additions and 0 deletions

9
debian/changelog vendored
View File

@ -1,3 +1,12 @@
e2fsprogs (1.42.5-1.1) unstable; urgency=low
* Non-maintainer upload.
* e2fsck-static, e2fsprogs: let preinst remove a symbolic link in
/usr/share/doc, that should have been replaced with a directory since
1.39+1.40-WIP-2006.10.02+dfsg-1. (Closes: #698879).
-- Nicolas Boulenguez <nicolas@debian.org> Fri, 22 Feb 2013 23:14:59 +0100
e2fsprogs (1.42.5-1) unstable; urgency=low
* New upstream version

19
debian/e2fsck-static.preinst vendored Normal file
View File

@ -0,0 +1,19 @@
#!/bin/sh
# Abort on error.
set -e
PKG=e2fsck-static
DOCLNK=/usr/share/doc/$PKG
if test "$1" = upgrade \
-a -L $DOCLNK
then
rm $DOCLNK
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0

19
debian/e2fsprogs.preinst vendored Normal file
View File

@ -0,0 +1,19 @@
#!/bin/sh
# Abort on error.
set -e
PKG=e2fsprogs
DOCLNK=/usr/share/doc/$PKG
if test "$1" = upgrade \
-a -L $DOCLNK
then
rm $DOCLNK
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0