[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [rbm/master] Bug 29194: Set DEBIAN_FRONTEND=noninteractive



commit c61e6940a1824462648064898be0759dd1600414
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
Date:   Tue Jan 29 16:08:03 2019 +0100

    Bug 29194: Set DEBIAN_FRONTEND=noninteractive
    
    Set DEBIAN_FRONTEND=noninteractive when using apt-get in install_package.
    Also use the -q (quiet) argument.
---
 lib/RBM/DefaultConfig.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/RBM/DefaultConfig.pm b/lib/RBM/DefaultConfig.pm
index d758b8e..f8165c3 100644
--- a/lib/RBM/DefaultConfig.pm
+++ b/lib/RBM/DefaultConfig.pm
@@ -540,7 +540,7 @@ OPT_END
         my $dnf = 'rpm -q [% c("pkg_name") %] > /dev/null || dnf install -y [% c("pkg_name") %]';
         my $zypper = 'rpm -q [% c("pkg_name") %] > /dev/null || zypper install [% c("pkg_name") %]';
         my $urpmi = 'rpm -q [% c("pkg_name") %] > /dev/null || urpmi [% c("pkg_name") %]';
-        my $apt = 'dpkg -s [% c("pkg_name") %] 2> /dev/null | grep -q "^Status: install ok installed\$" || apt-get install -y [% c("pkg_name") %]';
+        my $apt = 'dpkg -s [% c("pkg_name") %] 2> /dev/null | grep -q "^Status: install ok installed\$" || DEBIAN_FRONTEND=noninteractive apt-get install -q -y [% c("pkg_name") %]';
         my %install = (
             Fedora      => $dnf,
             'Fedora-20' => $yum,

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits