debian/vlc.postinst: Fix directory to symlink upgrade in postinst.
Closes: #687657
Thanks: David Prévot <taffit@debian.org>
Benjamin Drung
11 years ago
|
0 |
#!/bin/sh
|
|
1 |
set -e
|
|
2 |
|
|
3 |
# Replace documentation directory with symlink
|
|
4 |
docdir="/usr/share/doc/vlc"
|
|
5 |
if [ -d $docdir ] && [ ! -L $docdir ]; then
|
|
6 |
if rmdir $docdir 2>/dev/null; then
|
|
7 |
ln -sf vlc-nox $docdir
|
|
8 |
fi
|
|
9 |
fi
|
|
10 |
|
|
11 |
#DEBHELPER#
|
0 | |
#! /bin/sh
|
1 | |
set -e
|
2 | |
|
3 | |
case "$1" in
|
4 | |
upgrade)
|
5 | |
# Make sure /usr/share/doc/vlc doesn't exist or is a symlink
|
6 | |
# before the unpacking (which will put the link back) - #613121
|
7 | |
if dpkg --compare-versions "$2" le "2.0.1-2~" && test ! -L "/usr/share/doc/vlc"; then
|
8 | |
rm -rf /usr/share/doc/vlc/
|
9 | |
fi
|
10 | |
;;
|
11 | |
esac
|
12 | |
|
13 | |
#DEBHELPER#
|