From 410cd9cfc46194d6c053b498ad7995d71b70db5c Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 6 Jan 2022 22:48:16 +0100 Subject: [PATCH] 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. --- tool/run/depot.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tool/run/depot.inc b/tool/run/depot.inc index 79feadbc30..59ec4b4023 100644 --- a/tool/run/depot.inc +++ b/tool/run/depot.inc @@ -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] "