Do not print an error when uninstalling and no other catalogs present

This commit is contained in:
Ondřej Vašík 2020-02-04 16:38:38 +01:00
parent f7eb58a30e
commit f834dc7cce

View File

@ -5,7 +5,7 @@
Name: docbook-dtds
Version: 1.0
Release: 74%{?dist}
Release: 75%{?dist}
Summary: SGML and XML document type definitions for DocBook
@ -429,15 +429,15 @@ ent/iso-cyr2.ent
sgmldir=/usr/share/sgml/docbook/$fmt-dtd-$ver
## SGML catalog
# Update the centralized catalog corresponding to this version of the DTD
$catcmd --sgml --del /etc/sgml/catalog /etc/sgml/$fmt-docbook-$ver.cat
$catcmd --sgml --del /etc/sgml/catalog /etc/sgml/$fmt-docbook-$ver.cat >/dev/null
rm -f /etc/sgml/$fmt-docbook-$ver.cat
## XML catalog
if [ $fmt = xml -a -w $xmlcatalog ]; then
for f in $entities; do
case $ver in 4.[45]) f=${f/-/} ;; esac
$catcmd --del $sgmldir/$f $xmlcatalog
$catcmd --del $sgmldir/$f $xmlcatalog >/dev/null
done
$catcmd --del $sgmldir $xmlcatalog
$catcmd --del $sgmldir $xmlcatalog >/dev/null
fi
done
@ -472,6 +472,10 @@ do
done
%changelog
* Tue Feb 05 2020 Ondrej Vasik <ovasik@redhat.com> - 1.0-75
- do not print an error when uninstalling and no other catalogs
are present (#1357273)
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild