[arch-projects] [devtools] [PATCH] Update mtime of chroot when building
Makes the chroot mtime a useful indicator of last usage. --- makechrootpkg.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makechrootpkg.in b/makechrootpkg.in index d03b703..6f63f58 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -158,6 +158,9 @@ create_chroot() { # Drop the read lock again exec 8>&- fi + + # Update mtime + touch "$copydir" } clean_temporary() { -- 1.9.2
Am 04.05.2014 05:07, schrieb Jan Alexander Steffens (heftig):
Makes the chroot mtime a useful indicator of last usage. --- makechrootpkg.in | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/makechrootpkg.in b/makechrootpkg.in index d03b703..6f63f58 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -158,6 +158,9 @@ create_chroot() { # Drop the read lock again exec 8>&- fi + + # Update mtime + touch "$copydir" }
clean_temporary() {
Just curious, what would you use this information for? -- Pierre Schmitz, https://pierre-schmitz.com
On Sun, May 4, 2014 at 8:01 AM, Pierre Schmitz <pierre@archlinux.de> wrote:
Just curious, what would you use this information for?
pkgbuild.com uses it to automatically throw away old chroots. That has, so far, kept chroots disk usage at under 25G. I'd add the cleanup service to devtools, but it's written in zsh.
participants (3)
-
Jan Alexander Steffens
-
Jan Alexander Steffens (heftig)
-
Pierre Schmitz