diff options
author | Leah Rowe <leah@libreboot.org> | 2024-01-21 22:11:00 +0000 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-01-21 22:11:00 +0000 |
commit | f72a72af96d9a7e957a966360d7eb0217a9aa4fb (patch) | |
tree | aa41dfaf8d389b374b5f26736474e7e55cb9f332 | |
parent | 435441d04b2482da6cddd34e988e9173331a9616 (diff) |
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 <leah@libreboot.org>
-rwxr-xr-x | script/update/trees | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/script/update/trees b/script/update/trees index fa812f54..100f5f15 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" @@ -121,7 +123,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" |