From 5525c5cd5f65454a541cc3d16d146f1293f9d327 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Fri, 31 Jan 2014 09:22:30 +0100 Subject: [PATCH] Don't print cmd info if output is false --- fdroidserver/common.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 413937ce..4d114d94 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1383,9 +1383,10 @@ def FDroidPopen(commands, cwd=None, output=True): :returns: A PopenResult. """ - if cwd: - logging.info("Directory: %s" % cwd) - logging.info("> %s" % ' '.join(commands)) + if output: + if cwd: + logging.info("Directory: %s" % cwd) + logging.info("> %s" % ' '.join(commands)) result = PopenResult() p = subprocess.Popen(commands, cwd=cwd, -- 2.30.2