mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
Fix dependency with python3-pkg-resources (it got removed). And add test.sh - Bump from 4.5.1 to 4.6.0 - Drop python3-pkg-resources dependency: setools uses 'from importlib import resources as pkg_resources' which is stdlib, not the external pkg_resources package - Update 010-no-gui.patch: pyproject.toml now manages script-files and package-data (was setup.py in 4.5.1); rewrite patch to target it - Update 030-remove-host-paths.patch: lib_dirs now uses list[str] type hint; fix hunk header line numbers to match new upstream layout - Add test.sh: verify core query classes (SELinuxPolicy, BoolQuery, TypeQuery, RoleQuery, UserQuery) are accessible Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
20 lines
551 B
Bash
Executable File
20 lines
551 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ "$1" = python3-setools ] || exit 0
|
|
|
|
python3 - << 'EOF'
|
|
import setools
|
|
|
|
# Verify the module loads and basic query classes are accessible
|
|
assert hasattr(setools, 'SELinuxPolicy'), \
|
|
"setools missing SELinuxPolicy class"
|
|
assert hasattr(setools, 'BoolQuery'), \
|
|
"setools missing BoolQuery class"
|
|
assert hasattr(setools, 'TypeQuery'), \
|
|
"setools missing TypeQuery class"
|
|
assert hasattr(setools, 'RoleQuery'), \
|
|
"setools missing RoleQuery class"
|
|
assert hasattr(setools, 'UserQuery'), \
|
|
"setools missing UserQuery class"
|
|
EOF
|