* Bugfix: fixed %postun routine, so catalog entries only get removed
on a real package installation OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/suse-xsl-stylesheets?expand=0&rev=18
This commit is contained in:
parent
ebf90d621e
commit
8869f7ec2a
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d80e66d2f4c74422982fb125ce28be90f75eb4b50d8b4353aed1b96dcdb1b707
|
||||
size 748832
|
||||
oid sha256:2471b6377f4f88735bb153b158a0e804f5f95c246a5302f24e451945dea9c052
|
||||
size 735144
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 20 14:34:57 UTC 2012 - fsundermeyer@opensuse.org
|
||||
|
||||
* Bugfix: fixed %postun routine, so catalog entries only get removed
|
||||
on a real package installation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 20 09:26:57 UTC 2012 - toms@opensuse.org
|
||||
|
||||
|
@ -120,8 +120,13 @@ exit 0
|
||||
#
|
||||
# Remove catalog entries
|
||||
#
|
||||
if [ ! -f %{_sysconfdir}/xml/%{novdoc_catalog} -a -x /usr/bin/edit-xml-catalog ] ; then
|
||||
# SGML
|
||||
# delete catalog entries
|
||||
# only run if package is really uninstalled ($1 = 0) and not
|
||||
# in case of an update
|
||||
#
|
||||
if [ 0 = $1 ]; then
|
||||
if [ ! -f %{_sysconfdir}/xml/%{novdoc_catalog} -a -x /usr/bin/edit-xml-catalog ] ; then
|
||||
# SGML
|
||||
for c in catalog/CATALOG.%{dtdname}-%{dtdversion}; do
|
||||
%{regcat} -r %{_datadir}/sgml/$c >/dev/null 2>&1
|
||||
done
|
||||
@ -132,7 +137,8 @@ if [ ! -f %{_sysconfdir}/xml/%{novdoc_catalog} -a -x /usr/bin/edit-xml-catalog ]
|
||||
# susexsl entry
|
||||
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
|
||||
--del %{name}
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
exit 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user