I'm afraid I'm not seeing the problem in the logic here. Can you give an example of a case where this would fail?

James D Strandboge wrote:
Package: gaim
Version: 1:1.1.4-2
Severity: normal

The statement:
if [ ! -h /usr/share/doc/gaim ]; then
        rmdir /usr/share/doc/gaim
...

evauluates to TRUE when /usr/share/doc/gaim doesn't exist.  Therefore
'rmdir' is called and fails, and dpkg gives errors and the install
stops.

I think you can do what you intended with:
if [ -d /usr/share/doc/gaim ]; then
        rmdir /usr/share/doc/gaim
fi

if [ ! -e /usr/share/doc/gaim ]; then
        ln -s gaim-data /usr/share/doc/gaim
fi



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to