From 0d3742b333e1f23c2737128df78dd6f40fd87f87 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Thu, 23 Mar 2017 14:33:17 +0000 Subject: [PATCH] Revert "unpack: avoid unecessary disk io" This reverts commit 895122eb66e19c073f4aa5663856d7f07b19b914. --- scripts/unpack | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/unpack b/scripts/unpack index 28bd13bf37..581272d2a8 100755 --- a/scripts/unpack +++ b/scripts/unpack @@ -39,9 +39,9 @@ mkdir -p $BUILD STAMP_DEPENDS="$PKG_DIR $PKG_NEED_UNPACK $PROJECT_DIR/$PROJECT/patches/$PKG_NAME" [ -n "$DEVICE" ] && STAMP_DEPENDS="$STAMP_DEPENDS $PROJECT_DIR/$PROJECT/devices/$DEVICE/patches/$PKG_NAME" -if [ -d "$PKG_BUILD" ]; then - if [ -f "$STAMP" ] ; then - . "$STAMP" +for i in $BUILD/$1-*; do + if [ -d $i -a -f "$i/.libreelec-unpack" ] ; then + . "$i/.libreelec-unpack" if [ "$STAMP_PKG_NAME" = "$1" ]; then PKG_DEEPMD5=$(find $STAMP_DEPENDS -exec md5sum {} \; 2>/dev/null | sort | md5sum | cut -d" " -f1) if [ ! "$PKG_DEEPMD5" = "$STAMP_PKG_DEEPMD5" ] ; then @@ -49,7 +49,7 @@ if [ -d "$PKG_BUILD" ]; then fi fi fi -fi +done if [ -d "$PKG_BUILD" -a ! -f "$STAMP" ]; then # stale pkg build dir