hetzner-nixops-installer: Reset helper timestamps.
This should prevent some annoying messages such as: tar: usr/bin/nix-build: time stamp 2013-07-09 07:45:19 is 0.159248271 s in the f uture tar: usr/bin/nix-channel: time stamp 2013-07-09 07:45:19 is 0.159088763 s in the future tar: usr/bin/nix-collect-garbage: time stamp 2013-07-09 07:45:19 is 0.15901664 s in the future tar: usr/bin/nix-copy-closure: time stamp 2013-07-09 07:45:19 is 0.158948028 s i n the future tar: usr/bin/nix-daemon: time stamp 2013-07-09 07:45:19 is 0.158888042 s in the future Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
d58a5eb572
commit
99e4890e9e
|
@ -57,6 +57,9 @@ in stdenv.mkDerivation {
|
||||||
full_storepaths="$("${perl}/bin/perl" "${pathsFromGraph}" refs-*)"
|
full_storepaths="$("${perl}/bin/perl" "${pathsFromGraph}" refs-*)"
|
||||||
stripped_full_storepaths="$(echo "$full_storepaths" | sed 's|/*||')"
|
stripped_full_storepaths="$(echo "$full_storepaths" | sed 's|/*||')"
|
||||||
|
|
||||||
|
# Reset timestamps to those of 'nix-store' to prevent annoying warnings.
|
||||||
|
find usr -exec touch -h -r "${nix}/bin/nix-store" {} +
|
||||||
|
|
||||||
( echo "#!${stdenv.shell}"
|
( echo "#!${stdenv.shell}"
|
||||||
echo 'tarfile="$(mktemp)"'
|
echo 'tarfile="$(mktemp)"'
|
||||||
echo 'trap "rm -f $tarfile" EXIT'
|
echo 'trap "rm -f $tarfile" EXIT'
|
||||||
|
|
Loading…
Reference in New Issue