Skip to content

Commit 8ef8753

Browse files
committed
Use the datetime from 24h ago for the bootstrap download link
This works around a race condition when archlinux-repro is started at 2022-04-01 00:01 and tries to download the new bootstrap image image before the image is generated and distributed to all mirrors.
1 parent 5f21440 commit 8ef8753

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

repro.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ BUILDDIRECTORY=/var/lib/repro
1212

1313
KEYRINGCACHE="${BUILDDIRECTORY}/keyring"
1414

15-
BOOTSTRAPMIRROR="https://europe.mirror.pkgbuild.com/iso/latest"
16-
readonly bootstrap_img=archlinux-bootstrap-"$(date -u +%Y.%m)".01-"$(uname -m)".tar.gz
15+
IMG_RELEASE_TIMESTAMP="$(date -d '24 hours ago' -u +%Y.%m)".01
16+
BOOTSTRAPMIRROR="https://europe.mirror.pkgbuild.com/iso/$IMG_RELEASE_TIMESTAMP"
17+
readonly bootstrap_img=archlinux-bootstrap-"$IMG_RELEASE_TIMESTAMP"-"$(uname -m)".tar.gz
1718
CONFIGDIR='REPRO_CONFIG_DIR'
1819

1920
HOSTMIRROR="https://europe.mirror.pkgbuild.com/\$repo/os/\$arch"

0 commit comments

Comments
 (0)