Make sure portage doesn't ask for confirmation

If EMERGE_DEFAULT_OPTS in make.conf(5) contains '--ask' then the portage
module doesn't work correctly, this commit fixes that
This commit is contained in:
nmeum 2014-12-04 12:21:15 +01:00 committed by Matt Clay
parent 74d6c7fd06
commit 883cd22821

View file

@ -335,6 +335,7 @@ def cleanup_packages(module, packages):
def run_emerge(module, packages, *args):
args = list(args)
args.append('--ask=n')
if module.check_mode:
args.append('--pretend')