mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
fix release pypi retry loop
This commit is contained in:
parent
9a1919c2f4
commit
364efdf409
@ -197,8 +197,14 @@ PY
|
||||
tmpdir="$(mktemp -d)"
|
||||
uv --no-cache venv "${tmpdir}/venv" --python 3.13 >/dev/null
|
||||
attempts=0
|
||||
until uv --no-cache pip install --dry-run --no-deps --python "${tmpdir}/venv/bin/python" "${package}==${version}" >/dev/null
|
||||
do
|
||||
while true; do
|
||||
set +e
|
||||
uv --no-cache pip install --dry-run --no-deps --python "${tmpdir}/venv/bin/python" "${package}==${version}" >/dev/null
|
||||
status="$?"
|
||||
set -e
|
||||
if [[ "$status" -eq 0 ]]; then
|
||||
break
|
||||
fi
|
||||
attempts=$((attempts + 1))
|
||||
if [[ "$attempts" -ge 30 ]]; then
|
||||
rm -rf "$tmpdir"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user