chiark / gitweb /
Don't print cmd info if output is false
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 31 Jan 2014 08:22:30 +0000 (09:22 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 31 Jan 2014 08:22:30 +0000 (09:22 +0100)
fdroidserver/common.py

index 413937ce3288e0406da2c03054054fce0bbc8645..4d114d94c6419c4f89dcf4002db036c070150082 100644 (file)
@@ -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,