bodhi/model.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 1672d7ffdae93ecf36a9495e32e136dca0905440
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Jun 23 15:18:07 2011 -0400
Add 'pushed to stable' comments on Security Response bugs (#485)
diff --git a/bodhi/model.py b/bodhi/model.py
index bc7d5ca..9169dc7 100644
--- a/bodhi/model.py
+++ b/bodhi/model.py
@@ -1376,7 +1376,12 @@ class Bugzilla(SQLObject):
comment = self._default_message(update)
try:
bug = bz.getbug(self.bz_id)
- if bug.product not in config.get('bz_products',
'').split(','):
+ # We only want to comment on Security Response bugs when an update
+ # reaches the stable repository (#485)
+ if bug.product == 'Security Response' and update.status ==
'stable':
+ pass
+ # Skip commenting on any products not listed in our config
+ elif bug.product not in config.get('bz_products',
'').split(','):
log.warning("Skipping %r bug #%d" % (bug.product, self.bz_id))
return
log.debug("Adding comment to Bug #%d: %s" % (self.bz_id, comment))
Show replies by date