Skip to content

Commit b5d3a38

Browse files
GeorgeSapkincommodo
authored andcommitted
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>
1 parent 5715d92 commit b5d3a38

2 files changed

Lines changed: 40 additions & 7 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/sh
2+
3+
# shellckeck shell=busybox
4+
5+
case "$PKG_NAME" in
6+
python3|\
7+
python3-base|\
8+
python3-light)
9+
python3 --version | grep -Fx "Python $PKG_VERSION"
10+
;;
11+
12+
python3-asyncio|\
13+
python3-base-src|\
14+
python3-codecs|\
15+
python3-ctypes|\
16+
python3-dbm|\
17+
python3-decimal|\
18+
python3-dev|\
19+
python3-light-src|\
20+
python3-logging|\
21+
python3-lzma|\
22+
python3-multiprocessing|\
23+
python3-ncurses|\
24+
python3-openssl|\
25+
python3-pydoc|\
26+
python3-readline|\
27+
python3-sqlite3|\
28+
python3-unittest|\
29+
python3-urllib|\
30+
python3-uuid|\
31+
python3-venv|\
32+
python3-xml)
33+
exit 0
34+
;;
35+
36+
*)
37+
echo "Untested package: $PKG_NAME" >&2
38+
exit 1
39+
;;
40+
esac

lang/python/python3/test.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)