From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j4M0Yjrp021553 for ; Sun, 22 May 2005 00:34:46 GMT Received: from p061204002064.ppp.prin.ne.jp ([61.204.2.64] helo=linux.box) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1DZeQX-0005EJ-DT for gentoo-dev@lists.gentoo.org; Sun, 22 May 2005 00:34:47 +0000 Received: by linux.box (Postfix, from userid 1000) id ACDAD46BF3; Sun, 22 May 2005 09:34:31 +0900 (JST) From: Jason Stubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] .keep files Date: Sun, 22 May 2005 09:34:28 +0900 User-Agent: KMail/1.8 References: <20050521222822.43a8e905@thelair.ynet.sk> <1116707899.20765.0.camel@blackwidow> In-Reply-To: <1116707899.20765.0.camel@blackwidow> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1257818.GUCFkmBjFv"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505220934.31118.jstubbs@gentoo.org> X-Archives-Salt: d18a8f3e-c57f-4b3f-8f91-dc2968609634 X-Archives-Hash: 5315f183379081aeb97dbb99379bf29e --nextPart1257818.GUCFkmBjFv Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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= =20 new version and then unmerging the old version, you'll see the reason. Ther= e=20 is not yet any central database of installed files so unmerging the old=20 version will find that the package installed a directory that is now empty= =20 (presumably because the files installed by that package have already been=20 removed) and the directory is removed. Regards, Jason Stubbs --nextPart1257818.GUCFkmBjFv Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCj9OXxvWNPsk/ZP4RAh7SAKCBOpwQUBxvHdS81AAjIDg6lvYKswCdG9IR 2BiqDtKjF1b0xDKkuOOp5Fs= =i9NK -----END PGP SIGNATURE----- --nextPart1257818.GUCFkmBjFv-- -- gentoo-dev@gentoo.org mailing list