diff options
author | Till Maas <opensource@till.name> | 2012-12-15 01:08:41 +0100 |
---|---|---|
committer | Till Maas <opensource@till.name> | 2012-12-15 01:08:41 +0100 |
commit | 15d0ca0f6b2b73e612a336caf86062e385099f47 (patch) | |
tree | f72c84ab7decd102eb62e6ceb494c8f344fb9e66 /cnucnu | |
parent | 31d9a6c61a06afbd722bc262f19d5a68fb72bcd8 (diff) | |
download | cnucnu-15d0ca0f6b2b73e612a336caf86062e385099f47.tar.gz cnucnu-15d0ca0f6b2b73e612a336caf86062e385099f47.tar.xz cnucnu-15d0ca0f6b2b73e612a336caf86062e385099f47.zip |
bugzilla_reporter: Use _proxy.Bug.update
This allows to use only one request to update the summary and add a
comment, which only creates one instead of two e-mails.
Diffstat (limited to 'cnucnu')
-rw-r--r-- | cnucnu/bugzilla_reporter.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cnucnu/bugzilla_reporter.py b/cnucnu/bugzilla_reporter.py index f650363..9b42d37 100644 --- a/cnucnu/bugzilla_reporter.py +++ b/cnucnu/bugzilla_reporter.py @@ -90,10 +90,11 @@ class BugzillaReporter(object): if bug_version != package.latest_upstream: update = {'summary': self.config["short_desc template"] % package, - 'comment': self.config["description template"] % package + 'comment': {'body': self.config["description template"] % package, 'is_private': False}, + 'ids': [open_bug.bug_id], } log.debug("About to update bug '%s' with '%r'" % (open_bug.bug_id, update)) - res = self.bz._update_bug(open_bug.bug_id, update) + res = self.bz._proxy.Bug.update(update) log.debug("Result from bug update: %r" % res) log.info("Updated bug: %s" % self.bug_url(open_bug)) return self.bug_url(open_bug) |