From 0e0ca64491f146a6ff276dc19c68a268b6d17259 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Sat, 4 May 2013 10:10:12 +0100 Subject: [PATCH] Correction to 6bd57d --- fdroidserver/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fdroidserver/build.py b/fdroidserver/build.py index fd6c8c8d..4ba744ac 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -626,6 +626,7 @@ def main(): site.login(wiki_user, wiki_password) for thisbuild in app['builds']: + wikilog = None try: if trybuild(app, thisbuild, build_dir, output_dir, extlib_dir, tmp_dir, repo_dir, vcs, options.test, options.server, @@ -654,7 +655,7 @@ def main(): failed_apps[app['id']] = e wikilog = str(e) - if options.wiki: + if options.wiki and wikilog: newpage = site.Pages[app['id'] + '/lastbuild'] txt = wikilog if len(txt) > 8192: