[red-hat-jboss-eap-7] Adapt script because of typo in the source file
This commit is contained in:
@@ -29,9 +29,13 @@ with releasedata.ProductData("red-hat-jboss-eap") as product_data:
|
||||
name_str = ''.join([content for content in columns[0].contents if isinstance(content, str)]).strip()
|
||||
date_str = columns[1].text.strip()
|
||||
|
||||
if date_str == "TBD": # Placeholder for a future release
|
||||
if date_str == "TBD" or date_str == "TDB": # Placeholder for a future release
|
||||
continue
|
||||
|
||||
if date_str == "[July 21, 2021][d7400]":
|
||||
# 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)
|
||||
|
||||
Reference in New Issue
Block a user