Configure Apt to never prompt for user-input.

Fixes bug #1205378

Change-Id: Ie55725e04aa6045b52c33a5cdd4d2be4ac1a6cc3
This commit is contained in:
Jason Dunsmore 2013-07-26 10:18:22 -05:00
parent a4e7c722f7
commit 73cebadc07
1 changed files with 2 additions and 1 deletions

View File

@ -461,7 +461,8 @@ class PackagesHandler(object):
# TODO(asalkeld) support versions
pkg_list = ' '.join([p for p in packages])
cmd_str = 'apt-get -y install %s' % pkg_list
cmd_str = 'DEBIAN_FRONTEND=noninteractive apt-get -y install %s' % \
pkg_list
CommandRunner(cmd_str).run()
# map of function pointers to handle different package managers