From 688f3ffb19f1153e90c1b6e710eab8e23f2ff9b0 Mon Sep 17 00:00:00 2001 From: Christian Baars Date: Sat, 25 May 2024 09:23:08 +0200 Subject: [PATCH] Small changes to berry_custom to better keep the local repository clean (#21491) * keep berry_custom clean with regards to GIT * keep .keep --- lib/libesp32/berry_custom/src/.gitignore | 5 ++++- pio-tools/solidify-from-url.py | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/libesp32/berry_custom/src/.gitignore b/lib/libesp32/berry_custom/src/.gitignore index 13a30a3a9..3031d39a7 100644 --- a/lib/libesp32/berry_custom/src/.gitignore +++ b/lib/libesp32/berry_custom/src/.gitignore @@ -1 +1,4 @@ -_temp* \ No newline at end of file +_temp* + +solidify/* +embedded/* diff --git a/pio-tools/solidify-from-url.py b/pio-tools/solidify-from-url.py index bdd5d564a..5a8d68ad6 100644 --- a/pio-tools/solidify-from-url.py +++ b/pio-tools/solidify-from-url.py @@ -39,10 +39,12 @@ def cleanFolder(): os.remove(join(BERRY_SOLIDIFY_DIR,"src",file)) tempfiles = [f for f in os.listdir(join(BERRY_SOLIDIFY_DIR,"src","embedded")) if ".gitignore" not in f] for file in tempfiles: - os.remove(join(BERRY_SOLIDIFY_DIR,"src","embedded",file)) + if file != ".keep": + os.remove(join(BERRY_SOLIDIFY_DIR,"src","embedded",file)) tempfiles = [f for f in os.listdir(join(BERRY_SOLIDIFY_DIR,"src","solidify")) if ".gitignore" not in f] for file in tempfiles: - os.remove(join(BERRY_SOLIDIFY_DIR,"src","solidify",file)) + if file != ".keep": + os.remove(join(BERRY_SOLIDIFY_DIR,"src","solidify",file)) def addEntryToModtab(source):