common/hooks: Fix hooks when build_style=meta
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# This hook removes python bytecode files (.py[co]).
|
||||
|
||||
hook() {
|
||||
find ${PKGDESTDIR} -type f -name '*.py[co]' -delete
|
||||
if [ -d "${PKGDESTDIR}" ]; then
|
||||
find ${PKGDESTDIR} -type f -name '*.py[co]' -delete
|
||||
fi
|
||||
}
|
||||
|
Reference in New Issue
Block a user