[elbe-devel] [PATCH] debinstaller: add --batch as gpg option

Manuel Traut manut at linutronix.de
Wed Nov 21 17:23:24 CET 2018


it is needed to run inside e.g. docker with no interactive terminal

Signed-off-by: Manuel Traut <manut at linutronix.de>
---
 elbepack/debinstaller.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elbepack/debinstaller.py b/elbepack/debinstaller.py
index 96d1d841..0160f6dc 100644
--- a/elbepack/debinstaller.py
+++ b/elbepack/debinstaller.py
@@ -100,6 +100,7 @@ def setup_apt_keyring(gpg_home, keyring_fname):
 
     gpg_options = '--keyring "%s" --no-auto-check-trustdb ' \
                   '--trust-model always --no-default-keyring ' \
+                  '--batch ' \
                   '--homedir "%s"' % (ring_path, gpg_home)
 
     trustkeys = os.listdir("/etc/apt/trusted.gpg.d")
-- 
2.19.1




More information about the elbe-devel mailing list