From c5e0f99b51d1837007d81264e3d9d42527227165 Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Tue, 20 Sep 2022 15:12:54 +0800 Subject: [PATCH] Fix the postun error --- docbook5-style-xsl.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docbook5-style-xsl.spec b/docbook5-style-xsl.spec index 2d24146..65d5f6a 100644 --- a/docbook5-style-xsl.spec +++ b/docbook5-style-xsl.spec @@ -1,7 +1,7 @@ Name: docbook5-style-xsl Summary: Norman Walsh's XSL stylesheets for DocBook 5.X Version: 1.79.2 -Release: 8 +Release: 9 License: MIT and MPLv1.1 URL: https://github.com/gooselinux/docbook5-style-xsl Source0: https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F{%version}/docbook-xsl-%{version}.tar.bz2 @@ -55,7 +55,9 @@ rm -rf %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" %{_sysconfdir}/xml/catalog %postun -[ "$1" = 0 ] && %{_bindir}/xmlcatalog --noout --del "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" %{_sysconfdir}/xml/catalog +if [ "$1" = 0 ]; then + %{_bindir}/xmlcatalog --noout --del "file://%{_datadir}/sgml/docbook/xsl-ns-stylesheets-%{version}" %{_sysconfdir}/xml/catalog +fi %files %doc COPYING @@ -68,5 +70,8 @@ rm -rf %{buildroot}%{_datadir}/sgml/docbook/xsl-ns-stylesheets/install.sh %doc BUGS README TODO NEWS RELEASE-NOTES.* extensions/*.txt %changelog +* Tue Sep 20 2022 yaoxin - 1.79.2-9 +- Fix the postun error + * Tue Dec 3 2019 caomeng -1.79.2-8 - Package init -- Gitee