Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / var / lib / dpkg / info / | server ip : 104.21.89.46 your ip : 172.71.254.81 H O M E |
Filename | /var/lib/dpkg/info/bzip2.preinst |
Size | 543 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 21-Oct-2013 21:15 |
Last accessed | 06-Jul-2025 22:35 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
set -eu
# If and only if we are uprading from a version lower than 0.9.5d-3,
# then we want to break the old /usr/share/doc/libbz2 symlink (which was
# pointing to libbz2).
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" "<<" "0.9.5d-3"
then
if test -L /usr/share/doc/bzip2
then
rm -f /usr/share/doc/bzip2
fi
fi
# And we should never ever have a directory in /usr/doc/bzip2
if [ -d /usr/doc/bzip2 ] && [ ! -L /usr/doc/bzip2 ]
then
echo "Cleaning up left-over /usr/doc/bzip2."
rm -fr /usr/doc/bzip2
fi
set -eu
# If and only if we are uprading from a version lower than 0.9.5d-3,
# then we want to break the old /usr/share/doc/libbz2 symlink (which was
# pointing to libbz2).
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" "<<" "0.9.5d-3"
then
if test -L /usr/share/doc/bzip2
then
rm -f /usr/share/doc/bzip2
fi
fi
# And we should never ever have a directory in /usr/doc/bzip2
if [ -d /usr/doc/bzip2 ] && [ ! -L /usr/doc/bzip2 ]
then
echo "Cleaning up left-over /usr/doc/bzip2."
rm -fr /usr/doc/bzip2
fi