mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
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>
This commit is contained in:
+5
-2
@@ -48,7 +48,9 @@ main()
|
|||||||
build_projects()
|
build_projects()
|
||||||
{
|
{
|
||||||
[ $# -gt 0 ] && x_ ./update trees $_f $@
|
[ $# -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"
|
load_project_config "$cfgsdir"
|
||||||
|
|
||||||
@@ -121,7 +123,8 @@ handle_defconfig()
|
|||||||
handle_src_tree()
|
handle_src_tree()
|
||||||
{
|
{
|
||||||
target_dir="${cfgsdir}/${target}"
|
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"
|
load_project_config "$target_dir"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user