summaryrefslogtreecommitdiffstats
path: root/utils/selinux-python/test-version.sh
blob: 92a7b65555da40e71127e14c82097e13848fcefc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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