Skip to content

Commit d79c0d4

Browse files
committed
Bump python3 to 3.12.10-r0
1 parent 4e49430 commit d79c0d4

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

json/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN apk -U upgrade \
1919
npm=10.9.1-r0 \
2020
openssl=3.3.3-r0 \
2121
py3-pip=24.3.1-r0 \
22-
python3=3.12.9-r0 \
22+
python3=3.12.10-r0 \
2323
&& if apk -u list | grep -q -e . ; then \
2424
apk -u list ; \
2525
exit 1 ; \

json/bump-apk-versions.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/ash
2+
3+
set -euo pipefail
4+
5+
cd "$(\dirname "$0")"
6+
7+
\apk update
8+
9+
\apk add perl
10+
11+
u=$(\apk -u list | \tr '\n' '|')
12+
13+
\sed -e :a -e '/\\$/N; s/\\\n//; ta' Dockerfile | \grep -o -e 'apk[^\&\;]*add[^\&\;]*' | \grep -o -e '[^ ]*\=[^ ]*' | while IFS= \read -r l; do
14+
p="${l%=*}"
15+
v1="${l#*=}"
16+
v="$(\echo "|${u}" | \grep -o -e "\|${p}-[^\|]*upgradable from: ${p}-${v1}" || true)"
17+
n=$(( $(\echo -n "${p}" | wc -c) + 2))
18+
v2="$(\echo "${v}" | \cut -d ' ' -f 0 | \cut -c ${n}-)"
19+
if [ -n "${v2}" ] && [ "${v2}" != "${v1}" ]; then
20+
\echo "${p} ${v1} -> ${v2}"
21+
\perl -i -p -e "s|\Q${l}\E|${p}=${v2}|g" Dockerfile
22+
fi
23+
done

0 commit comments

Comments
 (0)