selinux-python: add version check override

None of the selinux-python tools print the package version, so the
generic version check fails for all of them.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
Josef Schlehofer authored and Alexandru Ardelean committed 2026-09-28 17:44:38 +03:00
1 parent 0d7ca569eb
commit 17283f7e83
1 file changed
+28
+28
View File
@@ -0,0 +1,28 @@
#!/bin/sh
# shellcheck shell=busybox
# None of the selinux-python tools print the package version.
# Skip the generic version probe.
case "$PKG_NAME" in
python3-seobject|\
python3-seobject-src|\
python3-sepolgen|\
python3-sepolgen-src|\
python3-sepolicy|\
python3-sepolicy-src|\
selinux-audit2allow|\
selinux-chcat|\
selinux-python|\
selinux-semanage|\
selinux-sepolgen-ifgen|\
selinux-sepolicy)
exit 0
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac