1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +01:00

Don't output stdout/stderr twice, print what is run and where

This commit is contained in:
Daniel Martí 2013-10-23 19:53:33 +02:00
parent 162c7c40e6
commit 83183a31ac
2 changed files with 6 additions and 2 deletions

View File

@ -894,8 +894,9 @@ def main():
for app in build_succeeded:
print "success: %s" % (app['id'])
for fa in failed_apps:
print "Build for app %s failed:\n%s" % (fa, failed_apps[fa])
if not options.verbose:
for fa in failed_apps:
print "Build for app %s failed:\n%s" % (fa, failed_apps[fa])
print "Finished."
if len(build_succeeded) > 0:

View File

@ -1815,6 +1815,9 @@ def FDroidPopen(commands, cwd,
sys.stderr.flush()
result.stderr += line
if verbose:
print "Directory: %s" % cwd
print " > %s" % ' '.join(commands)
p.communicate()
result.returncode = p.returncode
return result