mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Revert remove redundant cleanup (#1567)
U-boot runs several targets. Cubox, Helios4, ... and they are not cleaned at checkout. @zhangn1985
This reverts commit 357926add6
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
This commit is contained in:
@@ -688,6 +688,9 @@ process_patch_file()
|
||||
local patch=$1
|
||||
local status=$2
|
||||
|
||||
# detect and remove files which patch will create
|
||||
lsdiff -s --strip=1 $patch | grep '^+' | awk '{print $2}' | xargs -I % sh -c 'rm -f %'
|
||||
|
||||
echo "Processing file $patch" >> $DEST/debug/patching.log
|
||||
patch --batch --silent -p1 -N < $patch >> $DEST/debug/patching.log 2>&1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user