abuild: silence pycache postcheck

otherwise every package prints

 >>> gotosocial-openrc*: Running postcheck for gotosocial-openrc
 find: /builds/raspbeguy/aports/testing/gotosocial/pkg/gotosocial-openrc/usr/lib/python*: No such file or directory

the other postchecks already conditionalise on if [ -d, but we use a wildcard here

no actual package change
This commit is contained in:
psykose 2023-04-19 13:26:05 +00:00
parent 264be38ecd
commit 633353b265
1 changed files with 1 additions and 1 deletions

View File

@ -827,7 +827,7 @@ postcheck() {
# look for pycache
# wildcard should always get the system python dir, and this is faster than
# trying to calculate the python version.
local pycache="$(find "$dir"/usr/lib/python* \( -type d -a -name "__pycache__" \))"
local pycache="$(find "$dir"/usr/lib/python* \( -type d -a -name "__pycache__" \) >/dev/null 2>&1 )"
if [ -n "$pycache" ] && [ "${name%-pyc}" = "$name" ]; then
warning "Found __pycache__ but package name doesn't end with -pyc"
fi