rpms/docbook-style-xsl/F-8 docbook-style-xsl.spec,1.40,1.41

Ondrej Vasik (ovasik) fedora-extras-commits at redhat.com
Tue Dec 11 13:09:52 UTC 2007


Author: ovasik

Update of /cvs/extras/rpms/docbook-style-xsl/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7329

Modified Files:
	docbook-style-xsl.spec 
Log Message:
remove entries from xmlcatalog only when removing package (post was adding/postun removing :( )


Index: docbook-style-xsl.spec
===================================================================
RCS file: /cvs/extras/rpms/docbook-style-xsl/F-8/docbook-style-xsl.spec,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- docbook-style-xsl.spec	5 Dec 2007 14:43:24 -0000	1.40
+++ docbook-style-xsl.spec	11 Dec 2007 13:09:18 -0000	1.41
@@ -1,6 +1,6 @@
 Name: docbook-style-xsl
 Version: 1.73.2
-Release: 3%{?dist}
+Release: 4%{?dist}
 Group: Applications/Text
 
 Summary: Norman Walsh's XSL stylesheets for DocBook XML
@@ -98,12 +98,19 @@
 
 
 %postun
-CATALOG=/etc/xml/catalog
-/usr/bin/xmlcatalog --noout --del \
- "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
-
+# remove entries only on removal of package
+if [ "$1" = 0 ]; then
+  CATALOG=/etc/xml/catalog
+  /usr/bin/xmlcatalog --noout --del \
+   "file:///usr/share/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
+fi
 
 %changelog
+* Tue Dec 11 2007 Ondrej Vasik <ovasik at redhat.com> 1.73.2-4
+- remove entries from xmlcatalog only on removal of package
+  (required because of the last change with droping release
+   -caused drop of catalog entries during update)
+
 * Wed Dec 05 2007 Ondrej Vasik <ovasik at redhat.com> 1.73.2-3
 - change a few non-constant expressions to constant that
   could now be handled by passivetex(#366441)




More information about the fedora-extras-commits mailing list