[Libreoffice-commits] dev-tools.git: ciabot/libreoffice-bugzilla2.py

Markus Mohrhard markus.mohrhard at googlemail.com
Mon Feb 15 03:05:54 UTC 2016


 ciabot/libreoffice-bugzilla2.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 6f1d55ec8055f23613603fad5e82a5ec4f40890c
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Mon Feb 15 04:05:18 2016 +0100

    leave out leading whitespace for empty whiteboard

diff --git a/ciabot/libreoffice-bugzilla2.py b/ciabot/libreoffice-bugzilla2.py
index 075fe47..2acdf55 100644
--- a/ciabot/libreoffice-bugzilla2.py
+++ b/ciabot/libreoffice-bugzilla2.py
@@ -66,7 +66,9 @@ class FreedesktopBZ:
 
             m = re.findall(new_version, old_whiteboard)
             if m is None or len(m) == 0:
-                new_whiteboard = old_whiteboard + " target:" + new_version
+                if not old_whiteboard == "":
+                    old_whiteboard = old_whiteboard + " "
+                new_whiteboard = old_whiteboard + "target:" + new_version
                 bug.setwhiteboard(new_whiteboard)
 
         cgiturl = "http://cgit.freedesktop.org/libreoffice/%s/commit/?id=%s" %(repo_name, commit.hexsha)


More information about the Libreoffice-commits mailing list