From b5d3a38e45f90e9d9f893d597fec6bd7b56524b6 Mon Sep 17 00:00:00 2001 From: George Sapkin Date: Sun, 10 May 2026 15:15:08 +0300 Subject: [PATCH] python3: move version checks to override Move existing version checks into override and add explicit package checks. Signed-off-by: George Sapkin --- lang/python/python3/test-version.sh | 40 +++++++++++++++++++++++++++++ lang/python/python3/test.sh | 7 ----- 2 files changed, 40 insertions(+), 7 deletions(-) create mode 100755 lang/python/python3/test-version.sh delete mode 100644 lang/python/python3/test.sh diff --git a/lang/python/python3/test-version.sh b/lang/python/python3/test-version.sh new file mode 100755 index 0000000000..c18da41931 --- /dev/null +++ b/lang/python/python3/test-version.sh @@ -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 diff --git a/lang/python/python3/test.sh b/lang/python/python3/test.sh deleted file mode 100644 index b45e65414f..0000000000 --- a/lang/python/python3/test.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -case "$1" in -python3|python3-base|python3-light) - python3 --version | grep -Fx "Python $2" - ;; -esac