Gentoo Archives: gentoo-user

From: gentuxx <gentuxx@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: .keep
Date: Mon, 21 Aug 2006 19:27:03
Message-Id: 44EA0797.8070101@gmail.com
In Reply to: [gentoo-user] Re: .keep by Alexander Skwar
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Alexander Skwar wrote:
5 > · Shawn Haggett <podge@××××××××.com>:
6 >
7 >> Philip Webb wrote:
8 >>> 060821 Shaochun Wang wrote:
9 >>>> Does anyone know the function of .keep file in a directory?
10 >>> It prevents the dir from being deleted by a script,
11 >>> eg esp during a package update.
12 >>>
13 >> I believe it is to do with how tar handles directories. If there are no
14 >> files in a dir, tar won't include the dir in the archive.
15 >
16 > Nope, tar doesn't have anything to do with this.
17 >
18 > [ ... snip Alexander's tar test ... ]
19 >
20 >
21 > Alexander Skwar
22 I believe it has something to do with portage. For example, if a
23 package being unmerged wants to remove that directory, it will leave
24 it alone if there is a .keep file there.
25
26 - --
27 gentux
28 echo "hfouvyyAhnbjm/dpn" | perl -pe 's/(.)/chr(ord($1)-1)/ge'
29
30 gentux's gpg fingerprint ==> 5495 0388 67FF 0B89 1239 D840 4CF0 39E2
31 18D3 4A9E
32 -----BEGIN PGP SIGNATURE-----
33 Version: GnuPG v1.4.5 (GNU/Linux)
34
35 iD8DBQFE6geWTPA54hjTSp4RAilBAJ9As7oI9+dgc6gI7sxzrCVr7lK7ZgCfagGa
36 eqXSrxVaL1WfytmW0jPRAPM=
37 =iZgd
38 -----END PGP SIGNATURE-----
39
40 --
41 gentoo-user@g.o mailing list