diff options
| author | Michael Stahl <mstahl@redhat.com> | 2014-11-06 15:48:53 +0100 |
|---|---|---|
| committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-11-21 22:22:36 +0100 |
| commit | b16c74e070044ca85af06ed620b9a9a3369876a9 (patch) | |
| tree | 2ceb7eff7d3b839161096223eb47403790a6e3b8 /ciabot | |
| parent | 3228b8cbd5710083c13eaae354daa88a0541d5f6 (diff) | |
libreoffice-bugzilla2.py: try to avoid modifying non-LO bugs
... which can happen when mis-typing bug ids.
Change-Id: I20d88a0aec83c7328d5ff6294adaa1e1f8d69a74
Diffstat (limited to 'ciabot')
| -rw-r--r-- | ciabot/libreoffice-bugzilla2.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ciabot/libreoffice-bugzilla2.py b/ciabot/libreoffice-bugzilla2.py index 5e67ebe..e072f69 100644 --- a/ciabot/libreoffice-bugzilla2.py +++ b/ciabot/libreoffice-bugzilla2.py @@ -53,6 +53,9 @@ class FreedesktopBZ: def update_whiteboard(self, commit, bugnr, new_version, branch, repo_name): bug = self.bz.getbug(bugnr) print(bug) + if bug.product != "LibreOffice": + print("refusing to update bug with non-LO component") + return; old_whiteboard = bug.getwhiteboard() m = re.findall(new_version, old_whiteboard) |
