From f01bdb99496d4e74a3768ffb212009fb06e96f65 Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Mon, 18 Dec 2017 16:15:38 +0100 Subject: [PATCH] run: let import_from_depot accept list variables When doing something like this in a run script ... lappend arg X lappend arg Y lappend arg Z import_from_depot arg ... the internals of import_from_depot do not treat $arg as list but as one string and interprets it as malformed depot path. We can handle this by applying {*} to $arg inside the procedure. Issue #2619 --- tool/run/depot.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/run/depot.inc b/tool/run/depot.inc index b42889bd2..7d43e371d 100644 --- a/tool/run/depot.inc +++ b/tool/run/depot.inc @@ -204,7 +204,7 @@ proc _collect_from_depot { archives } { # proc import_from_depot { args } { - foreach subdir [_collect_from_depot $args] { + foreach subdir [_collect_from_depot {*}$args] { # prevent src, api, and pkg archives from inflating the boot image if {[regexp [_depot_archive_versioned_path_pattern] $subdir dummy user type]} {