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

Reply via email to