summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMichael Gilbert <michael.s.gilbert@gmail.com>2010-02-17 01:59:11 +0000
committerMichael Gilbert <michael.s.gilbert@gmail.com>2010-02-17 01:59:11 +0000
commit4306926d87f578f09c72ba546cbd77045d33b386 (patch)
treef8f2673b0517786a92c007ab9ed7ac53ed4de5b4 /bin
parentcd17f699bae2cdd3a74a57d0008659577417c375 (diff)
support changes in nvd schema for remote and local issues
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@14116 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin')
-rw-r--r--bin/tracker_service.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/tracker_service.py b/bin/tracker_service.py
index 984dd5bdb8..108900be22 100644
--- a/bin/tracker_service.py
+++ b/bin/tracker_service.py
@@ -48,6 +48,8 @@ class BugFilter:
note = 'Restore lower than medium urgencies'
elif self.params['show_high_urgency'] and prop == 'show_high_urgency':
note = 'Restore lower than high urgencies'
+ elif self.params['show_remote_only'] and prop == 'show_remote_only':
+ note = 'Restore local and unset vulnerabilities'
else:
note = 'Hide ' + desc
l.append(TR(TD(A(url.updateParamsDict({prop : None}), note))))
@@ -72,8 +74,7 @@ class BugFilter:
def remoteFiltered(self, remote):
"""Returns True for only remote flaws if filtered."""
- return remote is not None and self.params['show_remote_only'] \
- and not remote
+ return self.params['show_remote_only'] and not remote
class BugFilterNoDSA(BugFilter):
def __init__(self, params):
@@ -670,7 +671,7 @@ this package, but still reference it.""")])
pkg_name = "%s (%s)" % (pkg_name, archive)
if remote is None:
- remote = ''
+ remote = 'unset'
elif remote:
remote = 'yes'
else:

© 2014-2024 Faster IT GmbH | imprint | privacy policy