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 : 108.162.241.180 H O M E |
Filename | /var/lib/dpkg/info/python2.7-minimal.preinst |
Size | 900 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:52 |
Last modified | 23-Mar-2014 07:57 |
Last accessed | 07-Jul-2025 00:12 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
set -e
syssite=/usr/lib/python2.7/site-packages
oldsite=/usr/lib/python2.7/old-site-packages
localsite=/usr/local/lib/python2.7/dist-packages
syslink=../../${localsite#/usr/*}
case "$1" in
install)
if [ -z "$2" ] && [ -d $syssite ] && [ ! -h $syssite ]; then
echo "new installation of python2.7-minimal; $syssite is a directory"
echo "which is expected a symlink to $localsite."
echo "please find the package shipping files in $syssite and"
echo "file a bug report to ship these in /usr/lib/python2.7/dist-packages instead"
echo "aborting installation of python2.7-minimal"
exit 1
fi
# remember newly installed runtime
mkdir -p /var/lib/python
touch /var/lib/python/python2.7_installed
;;
upgrade)
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
exit 0
set -e
syssite=/usr/lib/python2.7/site-packages
oldsite=/usr/lib/python2.7/old-site-packages
localsite=/usr/local/lib/python2.7/dist-packages
syslink=../../${localsite#/usr/*}
case "$1" in
install)
if [ -z "$2" ] && [ -d $syssite ] && [ ! -h $syssite ]; then
echo "new installation of python2.7-minimal; $syssite is a directory"
echo "which is expected a symlink to $localsite."
echo "please find the package shipping files in $syssite and"
echo "file a bug report to ship these in /usr/lib/python2.7/dist-packages instead"
echo "aborting installation of python2.7-minimal"
exit 1
fi
# remember newly installed runtime
mkdir -p /var/lib/python
touch /var/lib/python/python2.7_installed
;;
upgrade)
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
exit 0