Bug#298467: gaim.postinst doesn't work if directory doesn't already exist

2005-03-19 Thread Marc Langer
I ran into the same problem today. The Debian policy allows the user to delete everything in /usr/share/doc and every package must be able to cope with this situation. I deleted /usr/share/doc/* as I needed disk space for updating woody to sarge and don't need documentation on this system. -- T

Bug#298467: gaim.postinst doesn't work if directory doesn't already exist

2005-03-08 Thread Robert McQueen
Ari Pollak wrote: Okay, but why would /usr/share/doc/gaim not exist at all? That link is included in the gaim package. I'm assuming there is some legitimate situation that we have not forseen which causes /usr/share/doc/gaim to not exist, otherwise the reporter wouldn't have run into the bug and

Bug#298467: gaim.postinst doesn't work if directory doesn't already exist

2005-03-08 Thread Ari Pollak
Okay, but why would /usr/share/doc/gaim not exist at all? That link is included in the gaim package. James Strandboge wrote: 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)

Bug#298467: gaim.postinst doesn't work if directory doesn't already exist

2005-03-08 Thread James Strandboge
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 [ !

Bug#298467: gaim.postinst doesn't work if directory doesn't already exist

2005-03-07 Thread Ari Pollak
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 TR

Bug#298467: gaim.postinst doesn't work if directory doesn't already exist

2005-03-07 Thread James D Strandboge
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