| Server IP : 172.67.191.97 / Your IP : 104.23.243.196 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
# Copyright 2024 Simon McVittie
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
# Clean up libgtk2.0-0:*.postrm, so that when libgtk2.0-0 is purged, it
# will not delete non-dpkg-managed files that have been taken over by
# libgtk2.0-0t64, such as
# /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache
# See https://bugs.debian.org/1065493, https://bugs.debian.org/1065170.
# TODO: When, if ever, can we safely remove this?
case "$1" in
(install|upgrade)
# Do this cleanup on upgrade from any version older than the one that
# introduced this change.
#
# We also need to do this cleanup on new installations of
# libgtk2.0-0t64 (because any new installation might be replacing
# libgtk2.0-0) so treat an empty version as being arbitrarily old.
if dpkg --compare-versions "${2:-}" lt "2.24.33-4"
then
if old_postrm=$(dpkg-query --control-path "libgtk2.0-0:amd64" postrm 2>/dev/null) \
&& [ -n "$old_postrm" ] \
&& [ -e "$old_postrm" ]
then
echo "libgtk2.0-0t64.preinst: Removing $old_postrm to avoid" \
"loss of /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache..."
rm -f -v "$old_postrm"
fi
fi
;;
esac
# vim:set sw=4 sts=4 et: