[Secure-testing-commits] r33086 - bin

Holger Levsen holger at moszumanska.debian.org
Mon Mar 23 19:06:41 UTC 2015


Author: holger
Date: 2015-03-23 19:06:36 +0000 (Mon, 23 Mar 2015)
New Revision: 33086

Modified:
   bin/tracker_service.py
Log:
refactor, make code match comment

Modified: bin/tracker_service.py
===================================================================
--- bin/tracker_service.py	2015-03-23 18:23:01 UTC (rev 33085)
+++ bin/tracker_service.py	2015-03-23 19:06:36 UTC (rev 33086)
@@ -1370,13 +1370,13 @@
                                 # keep looking for a real winner...
                                 winner=suffix
                     repository=release+winner
-                    if status[pkg][issue][repository] == 0:
+                    if status[pkg][issue][repository] != 0:
                         # 1 = vulnerable, 2 = undetermined
+                        state = "open"
+                        suite_version = version[pkg][issue][repository]
+                    else:
                         state = "resolved"
                         suite_version = fixed_version[pkg][issue][repository]
-                    else:
-                        state = "open"
-                        suite_version = version[pkg][issue][repository]
                     suite_urgency = urgency[pkg][issue][repository]
                     if nodsa[pkg][issue].has_key(repository):
                         suite_nodsa = nodsa[pkg][issue][repository]




More information about the Secure-testing-commits mailing list