fixed missed passing use-sudo

This commit is contained in:
Brian Coca 2015-10-25 17:02:25 -04:00
parent 5d4474a2b2
commit 08d89bca9c

View file

@ -111,8 +111,7 @@ def _is_package_installed(module, name, locallib, cpanm):
else: else:
return False return False
def _build_cmd_line(name, from_path, notest, locallib, mirror, mirror_only, def _build_cmd_line(name, from_path, notest, locallib, mirror, mirror_only, installdeps, cpanm, use_sudo):
installdeps, cpanm):
# this code should use "%s" like everything else and just return early but not fixing all of it now. # this code should use "%s" like everything else and just return early but not fixing all of it now.
# don't copy stuff like this # don't copy stuff like this
if from_path: if from_path:
@ -174,8 +173,7 @@ def main():
if not installed: if not installed:
out_cpanm = err_cpanm = '' out_cpanm = err_cpanm = ''
cmd = _build_cmd_line(name, from_path, notest, locallib, mirror, cmd = _build_cmd_line(name, from_path, notest, locallib, mirror, mirror_only, installdeps, cpanm, use_sudo)
mirror_only, installdeps, cpanm)
rc_cpanm, out_cpanm, err_cpanm = module.run_command(cmd, check_rc=False) rc_cpanm, out_cpanm, err_cpanm = module.run_command(cmd, check_rc=False)