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:
b23b560
)
If given --verbose, don't print the whole error log again
author
Daniel Martí
<mvdan@mvdan.cc>
Sat, 22 Mar 2014 23:10:33 +0000
(
00:10
+0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Sat, 22 Mar 2014 23:10:33 +0000
(
00:10
+0100)
fdroidserver/build.py
patch
|
blob
|
history
diff --git
a/fdroidserver/build.py
b/fdroidserver/build.py
index 8c5f116117ffde455e72278e441f7415e2d1106c..7e30acfaf4a75a25125a35ad44b66dcba8ad301b 100644
(file)
--- a/
fdroidserver/build.py
+++ b/
fdroidserver/build.py
@@
-944,7
+944,9
@@
def main():
logfile = open(os.path.join(log_dir, app['id'] + '.log'), 'a+')
logfile.write(str(be))
logfile.close()
- print("Could not build app %s due to BuildException: %s" % (app['id'], be))
+ reason = str(be).split('\n',1)[0] if options.verbose else str(be)
+ print("Could not build app %s due to BuildException: %s" % (
+ app['id'], reason))
if options.stop:
sys.exit(1)
failed_apps[app['id']] = be