| Server IP : 172.67.191.97 / Your IP : 104.23.197.208 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/lib/dpkg/info/ |
Upload File : |
#! /bin/sh
set -e
# Kill any pre-compiled python crap
kill_python_crappage() {
[ -d /usr/share/hplip ] && \
find /usr/share/hplip \
\( -name '*.pyc' -o -name '*.pyo' \) \
-exec rm -f {} \;
:
}
case "$1" in
failed-upgrade|abort-install|abort-upgrade)
# Remove the symlink, no matter what. If it is
# needed, dpkg will recreate it. This is in an
# downgrade/failed upgrade unwind path
if [ -h /usr/share/doc/hplip ]; then
rm -f /usr/share/doc/hplip
fi
# and kill any crap left over for failed-upgrade
kill_python_crappage
;;
upgrade)
# support downgrading
if [ -h /usr/share/doc/hplip ]; then
rm -f /usr/share/doc/hplip
fi
;;
remove|disappear)
kill_python_crappage
;;
purge)
kill_python_crappage
for i in /run/hplip /var/run/hplip /var/log/hp/tmp; do
if dpkg-statoverride --list $i > /dev/null; then
dpkg-statoverride --remove $i || true
fi
done
[ -d /run/hplip ] && rm -fr /run/hplip
[ -d /var/log/hp/tmp ] && rm -fr /var/log/hp/tmp
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
esac
exit 0