Skip to content

Commit 2b39632

Browse files
Update scripts/update-apk-dependencies.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 4b02a28 commit 2b39632

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

scripts/update-apk-dependencies.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,10 @@ done < <(grep -oE '[a-z0-9][a-z0-9_-]*=[0-9][a-z0-9._]+-r[0-9]+' "$DOCKERFILE" |
7171
echo "🐍 Updating pip-pinned packages..."
7272

7373
while IFS= read -r match; do
74-
[[ "$match" =~ ^([a-zA-Z0-9][a-zA-Z0-9_-]*)==[0-9][a-z0-9._]*$ ]] || continue
74+
[[ "$match" =~ ^([a-zA-Z0-9][a-zA-Z0-9_-]*)==([0-9][a-z0-9._]*)$ ]] || continue
7575

7676
pkg="${BASH_REMATCH[1]}"
77-
current="${BASH_REMATCH[2]:-}"
78-
# extract current from match (everything after ==)
79-
current="${match#*==}"
77+
current="${BASH_REMATCH[2]}"
8078

8179
latest=$(curl -sf "https://pypi.org/pypi/${pkg}/json" | python3 -c "import sys,json; print(json.load(sys.stdin)['info']['version'])" 2>/dev/null || true)
8280

0 commit comments

Comments
 (0)