Bug 171229 - %postun error(s)
Summary: %postun error(s)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: docbook-dtds
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-19 18:36 UTC by Rex Dieter
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version: 1.0-29
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-10-21 15:54:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rex Dieter 2005-10-19 18:36:02 UTC
$ rpm -e docbook-dtds openjade
Failed to remove entry from /etc/sgml/catalog
/var/tmp/rpm-tmp.15271: line 59: [: : integer expression expected

It appears the section of %%postun is in the if:

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}" ]

In that sometimes either SGML or XML end up being empty/blank when it probably
ought to be considerred to be 0.

Comment 1 Tim Waugh 2005-10-21 15:54:00 UTC
Thanks.  Fixed in 1.0-29.  Actually they shouldn't be taken to be zero; just the
test should not be made if either is nul.


Note You need to log in before you can comment on or make changes to this bug.