diff --git a/scripts/unpack b/scripts/unpack index ce862102b4..2039499534 100755 --- a/scripts/unpack +++ b/scripts/unpack @@ -56,9 +56,10 @@ for i in $BUILD/$1-*; do break fi done - # trigger unpack / full rebuild on any patch change - for patch in $PKG_DIR/patches/* $PKG_DIR/patches.upstream/*; do - if [ -f "$patch" -a "$patch" -nt "$i/.openelec-unpack" ]; then + # trigger unpack / full rebuild on any patch / script / etc.. change + # TODO: rewwork $PKG_DIR/scripts -> $PKG_DIR/filesystem/.... + for file in $PKG_DIR/{patches,patches.upstream,scripts}/* ; do + if [ -f "$file" -a "$file" -nt "$i/.openelec-unpack" ]; then CLEAN_SOURCE=yes break fi