commit: b3cdddf783f0f31bc2b44e85edec6abade128fe3
Author: John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 24 03:18:26 2021 +0000
Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Sat Jul 24 03:18:26 2021 +0000
URL: https://gitweb.gentoo.org/proj/security.git/commit/?id=b3cdddf7
glsatool: avoid trying to publish GLSAs with TODOs
Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
bin/GLSATool.py | 4 ++++
1 file changed, 4 insertions(+)
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)