File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ AL_TAG="$2"
2323
2424
2525if [ " $AL_TAG " = " 2023" ]; then
26- MIRROR=$( curl -s https://cdn.amazonlinux.com/al2023/core/mirrors/latest/debuginfo/x86_64/mirror.list)
27- VERSION=$( curl -s ${MIRROR} repodata/primary.xml.gz | gunzip | sed -rn " s/^.*python${PYTHON_VERSION} -debuginfo-(.*)\-[0-9].amzn.*$/\1/p" | sed ' /-/!{s/$/_/}' | sort -V | sed ' s/_$//' | tail -1)
26+ MIRROR=$( curl -s https://cdn.amazonlinux.com/al2023/core/mirrors/latest/debuginfo/x86_64/mirror.list | sed ' s:/$:: ' )
27+ VERSION=$( curl -sS ${MIRROR} / repodata/primary.xml.gz | gunzip | sed -rn " s/^.*python${PYTHON_VERSION} -debuginfo-(.*)\-[0-9].amzn.*$/\1/p" | sed ' /-/!{s/$/_/}' | sort -V | sed ' s/_$//' | tail -1)
2828else
29- MIRROR=$( curl -s http://amazonlinux.default.amazonaws.com/2/core/latest/debuginfo/x86_64/mirror.list)
30- VERSION=$( curl -s $MIRROR /repodata/primary.xml.gz | gunzip | sed -rn " s/^.*python3-debuginfo-(.*)\-[0-9].amzn.*$/\1/p" | sed ' /-/!{s/$/_/}' | sort -V | sed ' s/_$//' | tail -1)
29+ MIRROR=$( curl -s http://amazonlinux.default.amazonaws.com/2/core/latest/debuginfo/x86_64/mirror.list | sed ' s:/$:: ' )
30+ VERSION=$( curl -sS $MIRROR /repodata/primary.xml.gz | gunzip | sed -rn " s/^.*python3-debuginfo-(.*)\-[0-9].amzn.*$/\1/p" | sed ' /-/!{s/$/_/}' | sort -V | sed ' s/_$//' | tail -1)
3131fi
3232
3333if [ -f /etc/os-release ] && grep " Amazon Linux 2" /etc/os-release; then
You can’t perform that action at this time.
0 commit comments