From aa343ae3bf542e11e5c1dd3c071d4e79b5257de7 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Thu, 23 Mar 2017 14:59:46 +0000 Subject: [PATCH] scripts: add comment to clarify usage --- scripts/clean | 1 + scripts/unpack | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/clean b/scripts/clean index ac72cf1752..2673b0b7f3 100755 --- a/scripts/clean +++ b/scripts/clean @@ -29,6 +29,7 @@ clean_package() { return fi + # Use a wilcard here to remove all versions of the package for i in $BUILD/$1-*; do if [ -d $i -a -f "$i/.libreelec-unpack" ] ; then . "$i/.libreelec-unpack" diff --git a/scripts/unpack b/scripts/unpack index 581272d2a8..9d16daeac4 100755 --- a/scripts/unpack +++ b/scripts/unpack @@ -39,6 +39,7 @@ 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" +# Perform a wildcard match on the package to ensure old versions are cleaned too for i in $BUILD/$1-*; do if [ -d $i -a -f "$i/.libreelec-unpack" ] ; then . "$i/.libreelec-unpack"