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"