diff options
author | Erich Eckner <git@eckner.net> | 2020-03-20 16:40:20 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-03-20 16:40:20 +0100 |
commit | d557887db8c168cb637edc2a4cada866700abcd3 (patch) | |
tree | 97b273ce6229a32e8d9f4b3a3469a38924a22a58 /bin/db-update | |
parent | 63ad7b9cb8f54b9df23f310f26aa23fe63ecb6b5 (diff) | |
download | builder-d557887db8c168cb637edc2a4cada866700abcd3.tar.xz |
bin/db-update: do not rename, rather rm and ln -s - to keep the file date up-to-date
Diffstat (limited to 'bin/db-update')
-rwxr-xr-x | bin/db-update | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/db-update b/bin/db-update index 54304ee..ef03d96 100755 --- a/bin/db-update +++ b/bin/db-update @@ -652,8 +652,10 @@ export TMPDIR="${tmp_dir}" "${perma_tmp_dir}" printf ' sed '"'"'\n' printf ' s,^\\(\\S\\+\\) \\(\\S\\+\\) \\(\\S\\+\\) \\(\\S\\+\\) \\(\\S\\+\\)$,' - printf 'rename "\\2/\\3/\\1" "\\4/\\5/\\1"\\n' - printf 'rename "\\2/\\3/\\1.sig" "\\4/\\5/\\1.sig",\n' + printf 'rm "\\2/\\3/\\1"\\n' + printf 'rm "\\2/\\3/\\1.sig"\\n' + printf 'ln -s "../../pool/\\1" "\\4/\\5/\\1"\\n' + printf 'ln -s "../../pool/\\1.sig" "\\4/\\5/\\1.sig",\n' printf ' '"'"' "%s/mv"\n' \ "${perma_tmp_dir}" printf ' echo quit\n' |