From: Jason Stubbs <jstubbs@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] .keep files
Date: Sun, 22 May 2005 09:34:28 +0900 [thread overview]
Message-ID: <200505220934.31118.jstubbs@gentoo.org> (raw)
In-Reply-To: <1116707899.20765.0.camel@blackwidow>
[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]
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 #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-05-22 0:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-21 20:28 [gentoo-dev] .keep files Andrej Kacian
2005-05-21 20:38 ` marduk
2005-05-22 0:34 ` Jason Stubbs [this message]
2005-05-22 0:37 ` Drake Wyrm
2005-05-22 19:19 ` Andrej Kacian
2005-05-22 21:31 ` Marius Mauch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200505220934.31118.jstubbs@gentoo.org \
--to=jstubbs@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox