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

Guilhem Moulin (via logerrit) logerrit at kemper.freedesktop.org
Tue Jun 30 12:33:59 UTC 2020


 ciabot/libreoffice-bugzilla2.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 4b667b2ccae3f3237cfdea90cf30138a7c930128
Author:     Guilhem Moulin <guilhem at libreoffice.org>
AuthorDate: Tue Jun 30 14:32:52 2020 +0200
Commit:     Guilhem Moulin <guilhem at libreoffice.org>
CommitDate: Tue Jun 30 14:32:52 2020 +0200

    ciabot: More fixes for the python-bugzilla API breakage.
    
    See https://blog.wikichoon.com/2016/06/python-bugzilla-api-changes-in-git.html .

diff --git a/ciabot/libreoffice-bugzilla2.py b/ciabot/libreoffice-bugzilla2.py
index fc53f62..8d11e31 100644
--- a/ciabot/libreoffice-bugzilla2.py
+++ b/ciabot/libreoffice-bugzilla2.py
@@ -65,14 +65,15 @@ class FreedesktopBZ:
             if not bug.product in ("LibreOffice", "LibreOffice Online"):
                 print("refusing to update bug with non-LO component")
                 return;
-            old_whiteboard = bug.getwhiteboard()
+            old_whiteboard = bug.whiteboard
 
             m = re.findall(new_version, old_whiteboard)
             if m is None or len(m) == 0:
                 if not old_whiteboard == "":
                     old_whiteboard = old_whiteboard + " "
                 new_whiteboard = old_whiteboard + "target:" + new_version
-                bug.setwhiteboard(new_whiteboard)
+                update = self.bz.build_update(whiteboard=new_whiteboard)
+                self.bz.update_bugs([bugnr], update)
 
         cgiturl = "https://git.libreoffice.org/%s/commit/%s" % (repo_name, commit.hexsha)
         if branch is None:


More information about the Libreoffice-commits mailing list