[Secure-testing-commits] r3133 - lib/python

Florian Weimer fw at costa.debian.org
Fri Dec 23 15:39:15 UTC 2005


Author: fw
Date: 2005-12-23 15:39:13 +0000 (Fri, 23 Dec 2005)
New Revision: 3133

Modified:
   lib/python/security_db.py
Log:
lib/python/security_db.py (DB.calculateDebsecan1):
  Yet another fix for urgency calculation.  Blecch.


Modified: lib/python/security_db.py
===================================================================
--- lib/python/security_db.py	2005-12-23 15:22:49 UTC (rev 3132)
+++ lib/python/security_db.py	2005-12-23 15:39:13 UTC (rev 3133)
@@ -1418,12 +1418,14 @@
                     (bug, package))):
                     if not total_urgency:
                         total_urgency = urgency
-                    elif total_urgency <> 'unknown':
-                        if urgency <> 'unknown' \
-                               and bugs.internUrgency(urgency) \
-                               > bugs.internUrgency(total_urgency):
+                    elif total_urgency == 'unknown':
+                        if urgency <> 'unimportant':
                             total_urgency = urgency
-                    elif total_urgency <> 'unimportant':
+                    elif urgency == 'unknown':
+                        if total_urgency == 'unimportant':
+                            total_urgency = 'unknown'
+                    elif bugs.internUrgency(urgency) \
+                             > bugs.internUrgency(total_urgency):
                         total_urgency = urgency
 
                     if kind == 'binary':




More information about the Secure-testing-commits mailing list