diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_world_install.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_make_world_install.sh b/scripts/lib/ptxd_make_world_install.sh index 09eebd941..e4db1e8fb 100644 --- a/scripts/lib/ptxd_make_world_install.sh +++ b/scripts/lib/ptxd_make_world_install.sh @@ -25,13 +25,14 @@ ptxd_make_world_install_python_cleanup() { find "${pkg_pkg_dir}" -type d -name bin -prune -o -name "*.py" -print | while read file; do if [ -e "${file}c" -o ! -d "$(dirname "${file}")/__pycache__" ]; then # not python3 or already handled - return + continue fi mv -v "$(dirname "${file}")/__pycache__/$(basename "${file%py}")"cpython-??.pyc "${file}c" || return done && check_pipe_status && find "${pkg_pkg_dir}" -type d -name __pycache__ -print0 | xargs -0 rm -vrf && - check_pipe_status + check_pipe_status || + ptxd_bailout "Cache cleanup for Python3 packages failed!" } export -f ptxd_make_world_install_python_cleanup |