* 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:
Frank Sundermeyer 2012-03-20 14:36:14 +00:00 committed by Git OBS Bridge
parent ebf90d621e
commit 8869f7ec2a
3 changed files with 17 additions and 5 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d80e66d2f4c74422982fb125ce28be90f75eb4b50d8b4353aed1b96dcdb1b707
size 748832
oid sha256:2471b6377f4f88735bb153b158a0e804f5f95c246a5302f24e451945dea9c052
size 735144

View File

@ -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

View File

@ -120,6 +120,11 @@ exit 0
#
# Remove catalog entries
#
# 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
@ -133,6 +138,7 @@ if [ ! -f %{_sysconfdir}/xml/%{novdoc_catalog} -a -x /usr/bin/edit-xml-catalog ]
edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
--del %{name}
fi
}
exit 0