mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 17:57:13 +08:00
26 lines
514 B
Plaintext
26 lines
514 B
Plaintext
post_install() {
|
|
if [ ! -d etc/xml ]; then
|
|
mkdir -p etc/xml
|
|
fi
|
|
if [ ! -e etc/xml/catalog ]; then
|
|
xmlcatalog --noout --create etc/xml/catalog
|
|
fi
|
|
xmlcatalog --noout --add "system" \
|
|
"http://glade.gnome.org/glade-2.0.dtd" \
|
|
/usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog
|
|
}
|
|
|
|
pre_upgrade() {
|
|
post_remove
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install $1
|
|
}
|
|
|
|
# arg 1: the old package version
|
|
post_remove() {
|
|
xmlcatalog --noout --del \
|
|
/usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog
|
|
}
|