trees: also remove single-tree repo/p/

single-tree repos were not previously cached, but now
they are and they have to be handled.

this, as also alluded to in the previous commit, is done
when preparing release archives (XBMK_RELEASE=y)

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2
Leah Rowe 2024-07-17 13:27:50 +01:00 committed by Leah Rowe
parent b564f5b848
commit 2d794a8385
1 changed files with 1 additions and 2 deletions

View File

@ -38,8 +38,7 @@ main()
[ -z "$_f" ] && $err "missing flag (-m/-u/-b/-c/-x/-f/-s/-l/-n)"
[ -z "$project" ] && for p in $(ls -1 config/git); do
./update trees $_f "$p" || $err "!./update trees $_f $p"
[ "$XBMK_RELEASE" != "y" ] || singletree "$p" || \
x_ rm -Rf "repo/$p"; continue
[ "$XBMK_RELEASE" != "y" ] || x_ rm -Rf "repo/$p"; continue
done && return 1
[ -f "config/git/$project/pkg.cfg" ] || $err "'$project' not defined"