From a2441bf112eaff6e34b2fc1a7318e02eddb10a3b Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Wed, 19 Jun 2019 16:07:34 +0200 Subject: [PATCH] stages/dnf: allow both operation and verbosity to be configurable This is for the sake of debuggability, but I figure dnf is the most complex of our tools, so instrumenting that a bit makes sense. The defaults are "install" and "info", as before. Signed-off-by: Tom Gundersen --- stages/io.weldr.dnf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stages/io.weldr.dnf b/stages/io.weldr.dnf index 4c625351..e3429e50 100755 --- a/stages/io.weldr.dnf +++ b/stages/io.weldr.dnf @@ -11,7 +11,8 @@ def main(tree, options): repos = options["repos"] packages = options["packages"] releasever = options["releasever"] - operation = options["operation"] + operation = options.get("operation", "install") + verbosity = options.get("verbosity", "info") with open("/tmp/dnf.conf", "w") as conf: p = configparser.ConfigParser() @@ -37,6 +38,7 @@ def main(tree, options): "--setopt", "reposdir=", "--setopt", "install_weak_deps=False", "--releasever", releasever, + "--rpmverbosity", verbosity, "--config", "/tmp/dnf.conf", operation ] + packages