[arch-projects] [devtools] [PATCH] Update mtime of chroot when building

Jan Alexander Steffens (heftig) jan.steffens at gmail.com
Sat May 3 23:07:46 EDT 2014


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



More information about the arch-projects mailing list