[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: xerces-j-2.2.1-13 - uninstall fails



On Fri, Feb 20, 2004 at 02:23:30PM +0100, Stefan Hoelldampf wrote:
> Hi,
> 
> The uninstall script of xerces-2.2.1-13 seems to be broken:
> 
>   # rpm -e --nodeps xerces
>   error: %preun(xerces-j-2.2.1-13) scriptlet failed, exit status 1
>   #
> 
> I wanted to file the problem to bugzilla, but I don't really know which
> component to choose...

Product rawhide, component xerces-j should be there.  I've filed bugs against
servletapi this week

This looks like a thinko in the %preun

+ f=/usr/lib/xerces-j/lib-org-w3c-dom.so
+ '[' -L /usr/lib/xerces-j/lib-org-w3c-dom.so ']'
+ rm -f /usr/lib/xerces-j/lib-org-w3c-dom.so
+ f=/usr/lib/xerces-j/lib-org-w3c-dom.so
+ '[' -L /usr/lib/xerces-j/lib-org-w3c-dom.so ']'

Indeed looking at rpm --scripts -q xerces-j the for loop then overriding f
looks suspect, I assume it should be using || : if it doesn't matter 
                                                                                            
for f in lib-org-w3c-dom.so lib-org-xml-sax.so; do
    f=/usr/lib/xerces-j/lib-org-w3c-dom.so
    [ -L $f ] && rm -f $f
done

Paul




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]