chiark / gitweb /
If given --verbose, don't print the whole error log again
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 22 Mar 2014 23:10:33 +0000 (00:10 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 22 Mar 2014 23:10:33 +0000 (00:10 +0100)
fdroidserver/build.py

index 8c5f116117ffde455e72278e441f7415e2d1106c..7e30acfaf4a75a25125a35ad44b66dcba8ad301b 100644 (file)
@@ -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