mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 04:56:58 +02:00
fix(update_distfiles): Set temporary directory
Provide an alternate directory for in-progress downloads to avoid uploading any by accident.
This commit is contained in:
parent
a25f12bbc4
commit
deb3824dee
@ -46,7 +46,7 @@ update_local_mirror() {
|
||||
info "Starting distfiles update for $repo_name"
|
||||
fi
|
||||
|
||||
mkdir -p "${repo_mirror}/"{distfiles,info,log}
|
||||
mkdir -p "${repo_mirror}/"{distfiles,info,log,tmp}
|
||||
emirrordist --mirror --verbose $extra_flags \
|
||||
--jobs=${NUM_JOBS} --repo="${repo_name}" \
|
||||
--distfiles="${repo_mirror}/distfiles" \
|
||||
@ -59,6 +59,7 @@ update_local_mirror() {
|
||||
--distfiles-db="${repo_mirror}/info/distfiles.db" \
|
||||
--deletion-delay=$((86400 * 14)) \
|
||||
--restrict-mirror-exemptions="gentoo" \
|
||||
--temp-dir="${repo_mirror}/tmp" \
|
||||
--verify-existing-digest
|
||||
}
|
||||
upload_mirror() {
|
||||
|
Loading…
Reference in New Issue
Block a user