On Debian and Debian derived systems.
Signed-off-by: Cleber Rosa <[email protected]>
---
client/shared/software_manager.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/client/shared/software_manager.py
b/client/shared/software_manager.py
index df37e9e..e7f796f 100755
--- a/client/shared/software_manager.py
+++ b/client/shared/software_manager.py
@@ -708,7 +708,7 @@ class AptBackend(DpkgBackend):
return None
-def install_distro_packages(distro_pkg_map):
+def install_distro_packages(distro_pkg_map, interactive=False):
'''
Installs packages for the currently running distribution
@@ -725,6 +725,9 @@ def install_distro_packages(distro_pkg_map):
utils.get_os_vendor(), to a list of package names
@returns: True if any packages were actually installed, False otherwise
'''
+ if not interactive:
+ os.environ['DEBIAN_FRONTEND'] = 'noninteractive'
+
result = False
distro = utils.get_os_vendor()
if distro_pkg_map.has_key(distro):
--
1.7.11.7
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel