update debian directory.

This commit is contained in:
Yue-Lan 2023-09-25 14:03:32 +08:00 committed by cckylin-cibot
parent 6682961593
commit 4998ea0983
2 changed files with 2 additions and 5 deletions

3
debian/changelog vendored
View File

@ -1,6 +1,7 @@
glib2.0 (2.74.5-ok3~0925) yangtze; urgency=medium
glib2.0 (2.74.5-ok3~0925.1) yangtze; urgency=medium
* 更新debian/rules
* 更新libglib2.0-0.postinst.in
-- Yue Lan <lanyue@kylinos.cn> Mon, 25 Sep 2023 11:49:28 +0800

View File

@ -34,16 +34,12 @@ fi
#DEBHELPER#
# This is shipped in the .deb (see debian/libglib2.0-0.dirs) but would
# be removed if empty during upgrade by old versions of the postrm (#987913).
# This workaround can be removed after Debian 12 and Ubuntu 22.04 are released.
install -d "/usr/lib/#MULTIARCH#/gio/modules"
"/usr/lib/#MULTIARCH#/glib-2.0/glib-compile-schemas" /usr/share/glib-2.0/schemas || true
"/usr/lib/#MULTIARCH#/glib-2.0/gio-querymodules" "/usr/lib/#MULTIARCH#/gio/modules" || true
# Clean up pre-multiarch giomodule.cache.
# This workaround can be removed after Debian 12 and Ubuntu 22.04 are released.
if [ -d /usr/lib/gio/modules ]; then
rm -f /usr/lib/gio/modules/giomodule.cache
rmdir -p --ignore-fail-on-non-empty /usr/lib/gio/modules