run: avoid superfluous call of depot auto update

If only versioned archives are supplied to a depot function like
'create_tar_from_depot_binaries', the depot/create tool is called
with zero arguments, resulting in a help message. The patch detects
this case and skips the call.
This commit is contained in:
Norman Feske 2022-01-06 22:48:16 +01:00 committed by Christian Helmuth
parent 48f0307234
commit 410cd9cfc4

View File

@ -209,6 +209,9 @@ proc _depot_auto_update { archives } {
# remove duplicates
set archives_to_create [lsort -unique $archives_to_create]
if {[llength $archives_to_create] == 0} {
return }
set cmd "[genode_dir]/tool/depot/create $archives_to_create "
append cmd "CROSS_DEV_PREFIX=[cross_dev_prefix] "
append cmd "DEPOT_DIR=[depot_dir] "