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
This commit is contained in:
Martin Stein 2017-12-18 16:15:38 +01:00 committed by Christian Helmuth
parent edf1f9d849
commit f01bdb9949

View File

@ -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]} {