xbps-src: limit the search to the /usr/lib/pythonX.Y directory
This commit is contained in:
parent
afc50a1290
commit
d77d6cde40
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ hook() {
|
|||
fi
|
||||
|
||||
if [ -d ${PKGDESTDIR}/usr/lib/python* ]; then
|
||||
pyver="$(find ${PKGDESTDIR}/usr/lib/python* -type d | grep -o '[[:digit:]]\.[[:digit:]]$')"
|
||||
pyver="$(find ${PKGDESTDIR}/usr/lib/python* -prune -type d | grep -o '[[:digit:]]\.[[:digit:]]$')"
|
||||
fi
|
||||
|
||||
if [ -n "$pycompile_version" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue