[jhbuild/release-team-commands] [goalreport] don't display patch icon on closed bugs



commit ff0feb3b4087a26a6d50dab41d428ab566dcf4df
Author: Frédéric Péters <fpeters 0d be>
Date:   Fri May 15 15:00:50 2009 +0200

    [goalreport] don't display patch icon on closed bugs
---
 jhbuild/commands/goalreport.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/jhbuild/commands/goalreport.py b/jhbuild/commands/goalreport.py
index b81b72d..2460a5d 100644
--- a/jhbuild/commands/goalreport.py
+++ b/jhbuild/commands/goalreport.py
@@ -519,8 +519,10 @@ class cmd_goalreport(Command):
                     bug_classes.append('bug-closed')
                     if label:
                         bug_classes.append('warn-bug-status')
-                elif self.bug_status.get(self.bugs[k], {}).get('patch'):
+
+                if label and self.bug_status.get(self.bugs[k], {}).get('patch'):
                     bug_classes.append('has-patch')
+
                 bug_class = ''
                 if bug_classes:
                     bug_class = ' class="%s"' % ' '.join(bug_classes)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]