From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C776413933E for ; Sat, 24 Jul 2021 03:19:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF989E0DCA; Sat, 24 Jul 2021 03:19:36 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 048B1E0DCA for ; Sat, 24 Jul 2021 03:19:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E08BB33BF35 for ; Sat, 24 Jul 2021 03:19:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3F3597A3 for ; Sat, 24 Jul 2021 03:19:33 +0000 (UTC) From: "John Helmert III" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "John Helmert III" Message-ID: <1627096706.b3cdddf783f0f31bc2b44e85edec6abade128fe3.ajak@gentoo> Subject: [gentoo-commits] proj/security:ajak-cvetool commit in: bin/ X-VCS-Repository: proj/security X-VCS-Files: bin/GLSATool.py X-VCS-Directories: bin/ X-VCS-Committer: ajak X-VCS-Committer-Name: John Helmert III X-VCS-Revision: b3cdddf783f0f31bc2b44e85edec6abade128fe3 X-VCS-Branch: ajak-cvetool Date: Sat, 24 Jul 2021 03:19:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a5d4f577-a515-48d1-a788-d61dd2ee031b X-Archives-Hash: 4f586b2c5fa19b66a16ac64646771f79 commit: b3cdddf783f0f31bc2b44e85edec6abade128fe3 Author: John Helmert III gentoo org> AuthorDate: Sat Jul 24 03:18:26 2021 +0000 Commit: John Helmert III gentoo 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 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)