3
0
Fork 0
forked from mirrors/nixpkgs

ensureNewerSourcesHook: fix problems with symlinks

Fixes #14043. Now symlinks themselves are touched instead of their
targets.
This commit is contained in:
Vladimír Čunát 2016-03-22 21:59:01 +01:00
parent 891fd356d7
commit ff60350eb9

View file

@ -264,7 +264,7 @@ let
postUnpackHooks+=(_ensureNewerSources)
_ensureNewerSources() {
'${findutils}/bin/find' "$sourceRoot" \
'!' -newermt '${year}-01-01' -exec touch -d '${year}-01-02' '{}' '+'
'!' -newermt '${year}-01-01' -exec touch -h -d '${year}-01-02' '{}' '+'
}
'');