summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-03-20 16:40:20 +0100
committerErich Eckner <git@eckner.net>2020-03-20 16:40:20 +0100
commitd557887db8c168cb637edc2a4cada866700abcd3 (patch)
tree97b273ce6229a32e8d9f4b3a3469a38924a22a58
parent63ad7b9cb8f54b9df23f310f26aa23fe63ecb6b5 (diff)
downloadbuilder-d557887db8c168cb637edc2a4cada866700abcd3.tar.xz
bin/db-update: do not rename, rather rm and ln -s - to keep the file date up-to-date
-rwxr-xr-xbin/db-update6
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'