On Sunday 22 May 2005 05:38, marduk wrote:
> On Sat, 2005-05-21 at 22:28 +0200, Andrej Kacian wrote:
> > Are .keep files necessary in a live filesystem? AFAIK they're only there
> > to keep portage from removing a directory from emerge-time image. Would
> > it be possible to just remove them from live filesystem after package
> > files are merged to / ?
> >
> > Or do .keep files serve another purpose, not obvious to me?
>
> I always thought that they were to keep 'emerge unmerge' from removing
> an empty directory, but I could be wrong...

You're pretty much right. If you look at updating a package as emerging the 
new version and then unmerging the old version, you'll see the reason. There 
is not yet any central database of installed files so unmerging the old 
version will find that the package installed a directory that is now empty 
(presumably because the files installed by that package have already been 
removed) and the directory is removed.

Regards,
Jason Stubbs

Attachment: pgpCtJiA1hsdd.pgp
Description: PGP signature

Reply via email to