From f9d3757694f85df8250952e5f340adef20c0a344 Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Wed, 16 Jul 2025 07:08:44 +0200 Subject: [PATCH] =?UTF-8?q?[red-hat-jboss-eap-7]=C2=A0Filter=20releases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/red-hat-jboss-eap-7.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/red-hat-jboss-eap-7.py b/src/red-hat-jboss-eap-7.py index f6a272a3..49dc0217 100644 --- a/src/red-hat-jboss-eap-7.py +++ b/src/red-hat-jboss-eap-7.py @@ -27,8 +27,11 @@ with ProductData(config.product) as product_data: columns = row.find_all("td") # Get the version name without the content of the tag, if present name_str = ''.join([content for content in columns[0].contents if isinstance(content, str)]).strip() - date_str = columns[1].text.strip() + name = name_str.replace("GA", "Update 0").replace("Update ", release + ".") + if not config.first_match(name): + continue + date_str = columns[1].text.strip() if date_str == "TBD" or date_str == "TDB": # Placeholder for a future release continue @@ -36,6 +39,6 @@ with ProductData(config.product) as product_data: # Temporary fix for a typo in the source page date_str = "July 21 2021" - name = name_str.replace("GA", "Update 0").replace("Update ", release + ".") + date = dates.parse_date(date_str) product_data.declare_version(name, date)