Browse Source

bin/post_release.py: Add .html to hrefs

oops.

Fixes: 3226b12a09
       ("release: Add an update_release_calendar.py script")
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
tags/19.3-branchpoint
Dylan Baker 7 years ago
parent
commit
7e4b87f987
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      bin/post_version.py

+ 3
- 2
bin/post_version.py View File

header.text = f"{month} {date.day}, {date.year}" header.text = f"{month} {date.day}, {date.year}"


body = etree.Element('p') body = etree.Element('p')
a = etree.SubElement(body, 'a', attrib={'href': f'relnotes/{previous_version}'})
a = etree.SubElement(
body, 'a', attrib={'href': f'relnotes/{previous_version}.html'})
a.text = f"Mesa {previous_version}" a.text = f"Mesa {previous_version}"
if is_point: if is_point:
a.tail = " is released. This is a bug fix release." a.tail = " is released. This is a bug fix release."
tree = html.parse(f) tree = html.parse(f)


li = etree.Element('li') li = etree.Element('li')
a = etree.SubElement(li, 'a', href=f'relnotes/{previous_version}')
a = etree.SubElement(li, 'a', href=f'relnotes/{previous_version}.html')
a.text = f'{previous_version} release notes' a.text = f'{previous_version} release notes'


ul = tree.xpath('.//ul')[0] ul = tree.xpath('.//ul')[0]

Loading…
Cancel
Save