File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ load("@bazel_skylib//lib:shell.bzl", "shell")
4
4
load ("//bazeldnf:toolchain.bzl" , "BAZELDNF_TOOLCHAIN" )
5
5
6
6
def _bazeldnf_impl (ctx ):
7
- transitive_dependencies = []
7
+ transitive_dependencies = depset ([])
8
8
out_file = ctx .actions .declare_file (ctx .label .name + ".bash" )
9
9
args = []
10
10
if ctx .attr .command :
@@ -15,7 +15,7 @@ def _bazeldnf_impl(ctx):
15
15
args .extend (["--rpmtree" , ctx .attr .rpmtree ])
16
16
if ctx .file .tar :
17
17
args .extend (["--input" , ctx .file .tar .path ])
18
- transitive_dependencies . extend ( ctx .attr .tar .files )
18
+ transitive_dependencies = ctx .attr .tar .files
19
19
args .extend (ctx .attr .libs )
20
20
21
21
toolchain = ctx .toolchains [BAZELDNF_TOOLCHAIN ]
@@ -32,7 +32,7 @@ def _bazeldnf_impl(ctx):
32
32
)
33
33
runfiles = ctx .runfiles (
34
34
files = [toolchain ._tool ],
35
- transitive_files = depset ([], transitive = transitive_dependencies ),
35
+ transitive_files = depset ([], transitive = [ transitive_dependencies ] ),
36
36
)
37
37
return [DefaultInfo (
38
38
files = depset ([out_file ]),
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def _xattrs_impl(ctx):
23
23
if ctx .attr .capabilities :
24
24
capabilities = []
25
25
for k , v in ctx .attr .capabilities .items ():
26
- capabilities .append ([ k + "=" + ":" .join (v )] )
26
+ capabilities .append (k + "=" + ":" .join (v ))
27
27
args += ["--capabilities" , "," .join (capabilities )]
28
28
29
29
if ctx .attr .selinux_labels :
You can’t perform that action at this time.
0 commit comments