aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2021-07-23 22:18:26 -0500
committerJohn Helmert III <ajak@gentoo.org>2021-07-23 22:18:26 -0500
commitb3cdddf783f0f31bc2b44e85edec6abade128fe3 (patch)
tree1619d6a1f96c9d683c0e2ff7100f6b5fc43a6145
parentglsatool: add partial releasing functionality (diff)
downloadsecurity-b3cdddf783f0f31bc2b44e85edec6abade128fe3.tar.gz
security-b3cdddf783f0f31bc2b44e85edec6abade128fe3.tar.bz2
security-b3cdddf783f0f31bc2b44e85edec6abade128fe3.zip
glsatool: avoid trying to publish GLSAs with TODOs
Signed-off-by: John Helmert III <ajak@gentoo.org>
-rw-r--r--bin/GLSATool.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/GLSATool.py b/bin/GLSATool.py
index a2a1b1b..9aa21b9 100644
--- a/bin/GLSATool.py
+++ b/bin/GLSATool.py
@@ -85,6 +85,10 @@ class GLSATool:
features='lxml')
glsa_id = 'glsa-' + released_soup.find('strong').text.split()[1]
+ # If there are red flags glsa_id will end up being 'for', so
+ # bail out on the releasing process just like GLSAMaker would
+ assert 'for' not in glsa_id
+
# Grab the xml
xml = self.request(xml_path)
xml_filename = '{}.xml'.format(glsa_id)