From 59cfb354d9d42cbe6bc67c2760cda9617d0f5638 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Fri, 8 Feb 2019 17:17:43 +0000 Subject: [PATCH] PKG_DEPENDS_UNPACK: add source package to PKG_NEED_UNPACK If the source package changes then we need to rebuild too. --- config/functions | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/functions b/config/functions index 6f76f0e259..78d4b41f8d 100644 --- a/config/functions +++ b/config/functions @@ -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.