chiark / gitweb /
build: fix fdroidserverid in build log post on wiki
authorHans-Christoph Steiner <hans@eds.org>
Thu, 9 Feb 2017 15:26:57 +0000 (16:26 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 13 Feb 2017 19:08:45 +0000 (20:08 +0100)
The carriage return in the fdroidserverid file messes up the wiki format.
This was forgotten in 69d39bb30101e8fdca1d4369cd2fd3b0d8a6fbc1

fdroidserver/build.py

index a100548ab4d9a90ba52318aee1a547755218752f..736e7ebe3d2fc907d9801f28dcbfb6f3ce294261 100644 (file)
@@ -1206,7 +1206,7 @@ def main():
                     lastbuildpage = appid + '/lastbuild_' + build.vercode
                     newpage = site.Pages[lastbuildpage]
                     with open(os.path.join('tmp', 'fdroidserverid')) as fp:
-                        fdroidserverid = fp.read()
+                        fdroidserverid = fp.read().rstrip()
                     txt = "* build completed at " + time.strftime("%Y-%m-%d %H:%M:%SZ", time.gmtime()) + '\n' \
                           + '* fdroidserverid: [https://gitlab.com/fdroid/fdroidserver/commit/' \
                           + fdroidserverid + ' ' + fdroidserverid + ']\n\n' \