We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b02a28 commit 2b39632Copy full SHA for 2b39632
1 file changed
scripts/update-apk-dependencies.sh
@@ -71,12 +71,10 @@ done < <(grep -oE '[a-z0-9][a-z0-9_-]*=[0-9][a-z0-9._]+-r[0-9]+' "$DOCKERFILE" |
71
echo "🐍 Updating pip-pinned packages..."
72
73
while IFS= read -r match; do
74
- [[ "$match" =~ ^([a-zA-Z0-9][a-zA-Z0-9_-]*)==[0-9][a-z0-9._]*$ ]] || continue
+ [[ "$match" =~ ^([a-zA-Z0-9][a-zA-Z0-9_-]*)==([0-9][a-z0-9._]*)$ ]] || continue
75
76
pkg="${BASH_REMATCH[1]}"
77
- current="${BASH_REMATCH[2]:-}"
78
- # extract current from match (everything after ==)
79
- current="${match#*==}"
+ current="${BASH_REMATCH[2]}"
80
81
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)
82
0 commit comments