python3: move version checks to override

Move existing version checks into override and add explicit package checks.

Signed-off-by: George Sapkin <george@sapk.in>
This commit is contained in:
George Sapkin authored and Alexandru Ardelean committed 2026-05-16 17:49:10 +03:00
1 parent 5715d92625
commit b5d3a38e45
2 files changed
+40 -7

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
#!/bin/sh
# shellckeck shell=busybox
case "$PKG_NAME" in
python3|\
python3-base|\
python3-light)
python3 --version | grep -Fx "Python $PKG_VERSION"
;;
python3-asyncio|\
python3-base-src|\
python3-codecs|\
python3-ctypes|\
python3-dbm|\
python3-decimal|\
python3-dev|\
python3-light-src|\
python3-logging|\
python3-lzma|\
python3-multiprocessing|\
python3-ncurses|\
python3-openssl|\
python3-pydoc|\
python3-readline|\
python3-sqlite3|\
python3-unittest|\
python3-urllib|\
python3-uuid|\
python3-venv|\
python3-xml)
exit 0
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac
-7
View File
@@ -1,7 +0,0 @@
#!/bin/sh
case "$1" in
python3|python3-base|python3-light)
python3 --version | grep -Fx "Python $2"
;;
esac