mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Revert "clean: avoid unecessary disk io"
This reverts commit 7bc2ed47020213ff2db0cead266040f33286d159.
This commit is contained in:
parent
0d3742b333
commit
5e5cc05c5a
@ -29,21 +29,19 @@ clean_package() {
|
||||
return
|
||||
fi
|
||||
|
||||
STAMP=$PKG_BUILD/.libreelec-unpack
|
||||
|
||||
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
|
||||
printf "%${BUILD_INDENT}c ${boldred}*${endcolor} ${red}Removing $PKG_BUILD ...${endcolor}\n" ' '>&$SILENT_OUT
|
||||
rm -rf "$PKG_BUILD"
|
||||
printf "%${BUILD_INDENT}c ${boldred}*${endcolor} ${red}Removing $i ...${endcolor}\n" ' '>&$SILENT_OUT
|
||||
rm -rf $i
|
||||
fi
|
||||
else
|
||||
# force clean if no stamp found (previous unpack failed)
|
||||
printf "%${BUILD_INDENT}c * Removing $PKG_BUILD ...\n" ' '>&$SILENT_OUT
|
||||
rm -rf "$PKG_BUILD"
|
||||
printf "%${BUILD_INDENT}c * Removing $i ...\n" ' '>&$SILENT_OUT
|
||||
rm -rf $i
|
||||
fi
|
||||
fi
|
||||
done
|
||||
rm -f $STAMPS/$1/build_*
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user