bodhi/controllers.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit bc9a6278b5e6a99d8d38c79d6662fdafd24948f5
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Feb 18 14:40:35 2010 -0500
Fix another bug related to bug aliases, and adding duplicate comments
diff --git a/bodhi/controllers.py b/bodhi/controllers.py
index 3b20c0e..ce4207a 100644
--- a/bodhi/controllers.py
+++ b/bodhi/controllers.py
@@ -853,13 +853,13 @@ class Root(controllers.RootController):
# Update any newly added bugs
for bug in bugs:
+ try:
+ bug = int(bug)
+ except ValueError: # bug alias
+ bugzilla = Bugzilla.get_bz()
+ bug = bugzilla.getbug(bug).bug_id
if bug not in original_bugs:
log.debug("Updating newly added bug: %s" % bug)
- try:
- bug = int(bug)
- except ValueError: # bug alias
- bugzilla = Bugzilla.get_bz()
- bug = bugzilla.getbug(bug).bug_id
Bugzilla.byBz_id(bug).add_comment(update,
"%s has been submitted as an update for %s.\n%s" %
(update.title, release.long_name,
Show replies by date