Fix use of extra args.

This commit is contained in:
Jelmer Vernooij 2021-05-17 18:23:10 +01:00
parent 0c6fdc9b08
commit 7b2f565a11

View file

@ -726,9 +726,11 @@ class R(BuildSystem):
return dc.copy_single(target_directory)
def install(self, session, resolver, fixers, install_target):
extra_args.append("--prefix=%s" % install_target.prefix)
extra_args = []
if install_target.prefix:
extra_args.append("--prefix=%s" % install_target.prefix)
r_path = guaranteed_which(session, resolver, "R")
run_with_build_fixers(session, [r_path, "CMD", "INSTALL", "."], fixers)
run_with_build_fixers(session, [r_path, "CMD", "INSTALL", "."] + extra_args, fixers)
def test(self, session, resolver, fixers):
r_path = guaranteed_which(session, resolver, "R")