[libvirt] [jenkins-ci PATCH v2 5/9] lcitool: force non-interactive apt-get frontend

Daniel P. Berrangé berrange at redhat.com
Tue Feb 5 17:53:02 UTC 2019


Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 guests/lcitool | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/guests/lcitool b/guests/lcitool
index 4fb0008..1d5cbd0 100755
--- a/guests/lcitool
+++ b/guests/lcitool
@@ -542,11 +542,14 @@ class Application:
 
         if package_format == "deb":
             sys.stdout.write(textwrap.dedent("""
-                RUN apt-get update && \\
-                    apt-get dist-upgrade -y && \\
-                    apt-get install -y ${PACKAGES} && \\
-                    apt-get autoremove -y && \\
-                    apt-get autoclean -y
+                RUN DEBIAN_FRONTEND=noninteractive && \\
+                    ( \\
+                        apt-get update && \\
+                        apt-get dist-upgrade -y && \\
+                        apt-get install -y ${PACKAGES} && \\
+                        apt-get autoremove -y && \\
+                        apt-get autoclean -y \\
+                    )
             """))
         elif package_format == "rpm":
             if os_name == "Fedora" and os_version == "Rawhide":
-- 
2.20.1




More information about the libvir-list mailing list