fix(abuild): use -print0 **after** the print commands

This commit is contained in:
Leo 2021-05-15 17:39:48 -03:00 committed by Natanael Copa
parent dee82f764c
commit 74b32d03db
1 changed files with 2 additions and 1 deletions

View File

@ -1234,8 +1234,9 @@ prepare_py_provides() {
# .egg-info packages, store the basename with the proper pyX.Y prefix
# one per-line
py_providers="$(find 'usr/lib/python'*/site-packages \
-print0 -mindepth 1 -maxdepth 1 \
-mindepth 1 -maxdepth 1 \
-type f -iname '*.py' -o -type d \
-print0 \
2>/dev/null | xargs -0 -I '{}' sh -c '
d="{}"