| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
# #950111: upgrading from < 1.11.1+dfsg-2 up to and including |
| 6 |
# 1.11.1+dfsg-6 leaves files in /usr/share/doc/libvigraimpex-doc/html. |
| 7 |
# Later versions (>= -7) handle the upgrade from << -3 correctly with maintscript-helper. |
| 8 |
|
| 9 |
|
| 10 |
if [ "$1" = "upgrade" ] && |
| 11 |
test -h /usr/share/doc/libvigraimpex-dev/html && |
| 12 |
test -d /usr/share/doc/libvigraimpex-doc/html && |
| 13 |
[ "$(readlink -f /usr/share/doc/libvigraimpex-dev/html)" = "/usr/share/doc/libvigraimpex-doc/html" ] && |
| 14 |
dpkg --compare-versions "$2" "ge" "1.11.1+dfsg-3" && |
| 15 |
dpkg --compare-versions "$2" "lt" "1.11.1+dfsg-7~" ; then |
| 16 |
echo "Hotfixing transition of /usr/share/doc/libvigraimpex-doc/html from symlink to directory" 1>&2 |
| 17 |
rm -v /usr/share/doc/libvigraimpex-dev/html |
| 18 |
mv -v /usr/share/doc/libvigraimpex-doc/html \ |
| 19 |
/usr/share/doc/libvigraimpex-dev/html |
| 20 |
fi |
| 21 |
|
| 22 |
#DEBHELPER# |