- Scriptlet fix (bug #171229).

This commit is contained in:
Tim Waugh 2005-10-21 15:46:13 +00:00
parent 4899727368
commit 2a126d9cb5

View File

@ -1,6 +1,6 @@
Name: docbook-dtds
Version: 1.0
Release: 28
Release: 29
Group: Applications/Text
Summary: SGML and XML document type definitions for DocBook.
@ -504,7 +504,7 @@ CATALOG=/etc/sgml/catalog
SGML=$(cat -n ${CATALOG} | grep sgml-docbook | head -1 | (read n line;echo $n))
XML=$(cat -n ${CATALOG} | grep xml-docbook | head -1 | (read n line; echo $n))
# Do they need switching around?
if [ "${XML}" -lt "${SGML}" ]
if [ -n "${XML}" ] && [ -n "${SGML}" ] && [ "${XML}" -lt "${SGML}" ]
then
# Switch those two lines around.
XML=$((XML - 1))
@ -951,7 +951,7 @@ CATALOG=/etc/sgml/catalog
SGML=$(cat -n ${CATALOG} | grep sgml-docbook | head -1 | (read n line;echo $n))
XML=$(cat -n ${CATALOG} | grep xml-docbook | head -1 | (read n line; echo $n))
# Do they need switching around?
if [ "${XML}" -lt "${SGML}" ]
if [ -n "${XML}" ] && [ -n "${SGML}" ] && [ "${XML}" -lt "${SGML}" ]
then
# Switch those two lines around.
XML=$((XML - 1))
@ -1203,6 +1203,9 @@ then
fi
%changelog
* Fri Oct 21 2005 Tim Waugh <twaugh@redhat.com> 1.0-29
- Scriptlet fix (bug #171229).
* Thu Oct 13 2005 Tim Waugh <twaugh@redhat.com> 1.0-28
- Fixed last fix (bug #159382).