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:
committed by
Christian Helmuth
parent
edf1f9d849
commit
f01bdb9949
@@ -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]} {
|
||||
|
||||
Reference in New Issue
Block a user