On Mon, 2005-03-07 at 15:50 -0500, Ari Pollak wrote: > 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 > > ... > >
If the directory /usr/share/doc/gaim does not exist, then ! -h /usr/share/doc/gaim evaluates to TRUE (because /usr/share/doc/gaim isn't a link-- it has to exist to be a link), and therefore 'rmdir' is called. Problem is, rmdir will error out when you try to remove a non-existent directory, saying: rmdir: `/usr/share/doc/gaim`: No such file or directory Because there was an error in postinst, dpkg stops, saying there was an error, and the user has to intervene to get the package to install. Jamie -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]