diff options
author | 2017-08-17 03:27:03 +0200 | |
---|---|---|
committer | 2017-08-17 09:54:37 +0200 | |
commit | 428f4af39d24dd13ee087112be7858c153cb18a3 (patch) | |
tree | 167a4ba4b484bfc3f74cda6bbd6c0d9ad921060e /tools/build_defs | |
parent | 36d526761737ba1459975e81780ca6edca9f6262 (diff) |
Prepare .bzl files to the new semantics of += on lists
In the future += on lists will work like .extend (by mutating the list) instead
of copying the list items to a new list (current behavior). Some .bzl files
need to be cleaned up to be compatible with both behaviors.
PiperOrigin-RevId: 165528261
Diffstat (limited to 'tools/build_defs')
-rw-r--r-- | tools/build_defs/pkg/pkg.bzl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build_defs/pkg/pkg.bzl b/tools/build_defs/pkg/pkg.bzl index 272b1ae763..f5a17dfc72 100644 --- a/tools/build_defs/pkg/pkg.bzl +++ b/tools/build_defs/pkg/pkg.bzl @@ -31,7 +31,7 @@ def _pkg_tar_impl(ctx): "--owner=" + ctx.attr.owner, "--owner_name=" + ctx.attr.ownername, ] - file_inputs = ctx.files.srcs + file_inputs = ctx.files.srcs[:] args += ["--file=%s=%s" % (f.path, dest_path(f, data_path)) for f in ctx.files.srcs] for target, f_dest_path in ctx.attr.files.items(): |