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:
parent
264be38ecd
commit
633353b265
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue