summaryrefslogtreecommitdiffstats
path: root/lib/python/bugs.py
diff options
context:
space:
mode:
authorSebastien Delafond <seb@debian.org>2017-08-10 21:06:58 +0000
committerSebastien Delafond <seb@debian.org>2017-08-10 21:06:58 +0000
commitd12acbc0e905448ecb0a030790debffaae4213d5 (patch)
tree6cbcb427c5c8db5303e78b198db223b34b985bc4 /lib/python/bugs.py
parent0a45501922bbc39e1079bfca406ad4501d944cc3 (diff)
Introduce new "ignored" & "postponed" sub-states for no-dsa
They will be stored in the "reason" field from package_notes_nodsa table, that was unused so far. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@54580 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib/python/bugs.py')
-rw-r--r--lib/python/bugs.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/python/bugs.py b/lib/python/bugs.py
index 7258be720e..b876647da9 100644
--- a/lib/python/bugs.py
+++ b/lib/python/bugs.py
@@ -588,7 +588,7 @@ class FileBase(debian_support.PackageFile):
if r[-1] == '\n':
r = r[:-1]
comments.append(('NOTE', r))
- elif v == 'no-dsa':
+ elif v in ('no-dsa','ignored','postponed'):
if not release:
self.raiseSyntaxError(
"no-dsa note needs release specification",
@@ -597,10 +597,15 @@ class FileBase(debian_support.PackageFile):
self.raiseSyntaxError(
"no-dsa note needs comment",
lineno)
+ if v in ('ignored','postponed'):
+ reason = v
+ else:
+ reason = None
pkg_notes.append(PackageNoteNoDSA(
release=release,
package=p,
- comment=d))
+ comment=d,
+ reason=reason))
if d:
# Not exactly ideal, but we have to
# record the free-form text in some

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