From 5f9ed1e130881b311282f9090013acf69902b699 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 21 Jan 2024 22:11:00 +0000 Subject: [PATCH] don't download projects on release archives the changelog file is only present in releases, so use the presence of this file for the test. someone who wants to fetch projects within a release archive can simply use the git repo, or delete the file. Signed-off-by: Leah Rowe --- script/update/trees | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/update/trees b/script/update/trees index 46f19c9..c746595 100755 --- a/script/update/trees +++ b/script/update/trees @@ -48,7 +48,9 @@ main() build_projects() { [ $# -gt 0 ] && x_ ./update trees $_f $@ - [ "$mode" = "fetch" ] && eval "fetch_project_repo; return 0;" + + [ "$mode" = "fetch" ] && [ ! -f "CHANGELOG" ] && \ + eval "fetch_project_repo; return 0;" load_project_config "$cfgsdir" @@ -118,7 +120,8 @@ handle_defconfig() handle_src_tree() { target_dir="${cfgsdir}/${target}" - [ "$mode" = "fetch" ] && eval "fetch_project_trees; return 1;" + [ "$mode" = "fetch" ] && [ ! -f "CHANGELOG" ] && \ + eval "fetch_project_trees; return 1;" load_project_config "$target_dir"