build: unset hooks before import, they can shadown each other

This commit is contained in:
Franco Fichtner 2016-09-22 17:36:52 +02:00
parent 28cc80799a
commit 49e17c78e0
1 changed files with 4 additions and 0 deletions

View File

@ -685,6 +685,8 @@ _setup_extras_generic()
return
fi
unset -f ${2}_hook
. ${CONFIGDIR}/extras.conf
if [ -n "$(type ${2}_hook 2> /dev/null)" ]; then
@ -700,6 +702,8 @@ _setup_extras_device()
return
fi
unset -f ${2}_hook
. ${DEVICEDIR}/${PRODUCT_DEVICE}.conf
if [ -n "$(type ${2}_hook 2> /dev/null)" ]; then