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

Re: Bug#40706: usr/share/doc vs. /usr/doc



On Fri, Jul 16, 1999 at 02:20:17PM -0700, Joey Hess wrote:
> Ben Gertzfield wrote:
> > If I remember, dpkg does not like replacing a directory with a
> > symlink. This may or may not still be the case.
> 
> Ugh, you're right:

[...]

> I still think this is a good proposal -- if we could only fix dpkg to deal
> with this better.
> 
> Aha!
> 

[..]

> What I did here is a preinst that rmdir'd /foo/bar/baz. And that works
> around the problem. I also tried it with files in the directory, if the
> preinst rm -rf's the directory it works ok.

You can also, as manoj suggested, put the symlink handling details in the
postinst/prerm.  By the time postinst is run, the directory has been
removed.

-- 
Joseph Carter <knghtbrd@debian.org>             Debian GNU/Linux developer
GnuPG: 2048g/3F9C2A43 - 20F6 2261 F185 7A3E 79FC  44F9 8FF7 D7A3 DCF9 DAB3
PGP 2.6: 2048R/50BDA0ED - E8 D6 84 81 E3 A8 BB 77  8E E2 29 96 C9 44 5F BE
--------------------------------------------------------------------------
* boren tosses matlab across the room and hopes it breaks into a number
  aproaching infinite peices

Attachment: pgpj3Ogs16rMk.pgp
Description: PGP signature


Reply to: