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

Pierre Schmitz pierre at archlinux.de
Sun May 4 02:01:19 EDT 2014


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


More information about the arch-projects mailing list