diff --git a/internal/bazeldnf.bzl b/internal/bazeldnf.bzl index 4b6e4fb..ac43632 100644 --- a/internal/bazeldnf.bzl +++ b/internal/bazeldnf.bzl @@ -11,7 +11,7 @@ def _bazeldnf_impl(ctx): if ctx.attr.rpmtree: args += ["--rpmtree", ctx.attr.rpmtree] if ctx.file.tar: - args += ["-i", ctx.file.tar.path] + args += ["--input", ctx.file.tar.path] transitive_dependencies += [ctx.attr.tar.files] for lib in ctx.attr.libs: args += [lib] diff --git a/internal/rpmtree.bzl b/internal/rpmtree.bzl index 1bca878..267f7f1 100644 --- a/internal/rpmtree.bzl +++ b/internal/rpmtree.bzl @@ -15,10 +15,10 @@ def _rpm2tar_impl(ctx): rpms = [] for rpm in ctx.files.rpms: - rpms += ["-i", rpm.path] + rpms += ["--input", rpm.path] out = ctx.outputs.out - args = ["rpm2tar", "-o", out.path] + args = ["rpm2tar", "--output", out.path] if ctx.attr.symlinks: symlinks = [] @@ -56,7 +56,7 @@ def _tar2files_impl(ctx): for out in ctx.outputs.out: files += [out.path] - args = ["tar2files", "--file-prefix", ctx.attr.prefix, "-i", ctx.files.tar[0].path] + files + args = ["tar2files", "--file-prefix", ctx.attr.prefix, "--input", ctx.files.tar[0].path] + files ctx.actions.run( inputs = ctx.files.tar, outputs = ctx.outputs.out, diff --git a/internal/xattrs.bzl b/internal/xattrs.bzl index 8fa1643..1696497 100644 --- a/internal/xattrs.bzl +++ b/internal/xattrs.bzl @@ -14,7 +14,7 @@ def _xattrs_impl(ctx): out = ctx.outputs.out - args = ["xattr", "-i", ctx.files.tar[0].path, "-o", out.path] + args = ["xattr", "--input", ctx.files.tar[0].path, "--output", out.path] if ctx.attr.capabilities: capabilities = []