build: unset hooks before import, they can shadown each other
This commit is contained in:
parent
28cc80799a
commit
49e17c78e0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue