chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b26f4b
)
Don't print cmd info if output is false
author
Daniel Martí
<mvdan@mvdan.cc>
Fri, 31 Jan 2014 08:22:30 +0000
(09:22 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Fri, 31 Jan 2014 08:22:30 +0000
(09:22 +0100)
fdroidserver/common.py
patch
|
blob
|
history
diff --git
a/fdroidserver/common.py
b/fdroidserver/common.py
index 413937ce3288e0406da2c03054054fce0bbc8645..4d114d94c6419c4f89dcf4002db036c070150082 100644
(file)
--- 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,