mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-12 19:50:57 +05:00
fix: wait for exact PyPI release
This commit is contained in:
parent
5256e5cd33
commit
5fbd6383d8
@ -284,11 +284,9 @@ wait_for_pypi() {
|
||||
local package_name="$1"
|
||||
local expected_version="$2"
|
||||
local attempts=0
|
||||
local published_version
|
||||
|
||||
while :; do
|
||||
published_version="$(curl -fsSL "https://pypi.org/pypi/${package_name}/json" | jq -r '.info.version')"
|
||||
if [[ "${published_version}" == "${expected_version}" ]]; then
|
||||
if curl -fsSL "https://pypi.org/pypi/${package_name}/json" | jq -e --arg version "${expected_version}" '.releases[$version] | length > 0' >/dev/null; then
|
||||
return 0
|
||||
fi
|
||||
attempts=$((attempts + 1))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user