PKG_DEPENDS_UNPACK: add source package to PKG_NEED_UNPACK

If the source package changes then we need to rebuild too.
This commit is contained in:
MilhouseVH 2019-02-08 17:17:43 +00:00
parent 9f1ea7d175
commit 59cfb354d9

View File

@ -873,6 +873,12 @@ source_package() {
[ "$PKG_ADDON_IS_STANDALONE" != "yes" ] && PKG_NEED_UNPACK="${PKG_NEED_UNPACK} $(get_pkg_directory $MEDIACENTER)"
fi
if [ -n "${PKG_DEPENDS_UNPACK}" ]; then
for _p in ${PKG_DEPENDS_UNPACK}; do
PKG_NEED_UNPACK+=" $(get_pkg_directory ${_p})"
done
fi
# Automatically set PKG_SOURCE_NAME unless it is already defined.
# PKG_SOURCE_NAME will be automatically set to a name based on
# the $PKG_NAME-$PKG_VERSION convention.