aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--MgaRepo/util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/MgaRepo/util.py b/MgaRepo/util.py
index 1237d12..8ef7845 100644
--- a/MgaRepo/util.py
+++ b/MgaRepo/util.py
@@ -48,6 +48,10 @@ def execcmd(*cmd, **kwargs):
else:
stderr = subprocess.STDOUT
+ verbose = config.getbool("global", "verbose", 0)
+ if verbose:
+ print("cmd: " + str(cmd).lstrip("(").rstrip(")").replace("', '", "' '")))
+
proc = subprocess.Popen(cmdargs, shell=False, stdout=stdout,
stderr=stderr, env=env)