Files
Josef Schlehofer 17283f7e83 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>
2026-09-28 17:44:38 +03:00

29 lines
472 B
Bash
Executable File

#!/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