Auto install of python-apt without recommends. (#39409)

debian:9

`apt-get install python-apt` - this will install python2.7 and python3
After this operation, *88.4 MB* of additional disk space will be used.

`apt-get install --no-install-recommends python-apt` - only python2.7
After this operation, *35.0 MB* of additional disk space will be used.

(cherry picked from commit c542e62)
(cherry picked from commit 58261a42e9)
pull/39899/head
Martin Krizek 7 years ago committed by ansibot
parent df72a1d644
commit 5be6a3ef58

@ -893,7 +893,7 @@ def main():
"If run normally this module can auto-install it." % PYTHON_APT) "If run normally this module can auto-install it." % PYTHON_APT)
try: try:
module.run_command(['apt-get', 'update'], check_rc=True) module.run_command(['apt-get', 'update'], check_rc=True)
module.run_command(['apt-get', 'install', PYTHON_APT, '-y', '-q'], check_rc=True) module.run_command(['apt-get', 'install', '--no-install-recommends', PYTHON_APT, '-y', '-q'], check_rc=True)
global apt, apt_pkg global apt, apt_pkg
import apt import apt
import apt.debfile import apt.debfile

Loading…
Cancel
Save