diff options
author | rsiddharth <s@ricketyspace.net> | 2017-02-09 02:37:27 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2017-02-09 02:37:27 +0000 |
commit | 8c19a9a378019ef669843c7082bb64512aaec886 (patch) | |
tree | c0c64502a3bf7b71c447b3d04fa50055e398a3a6 /gd_diff.py | |
parent | 43b60847ab573c449a52aaed497c378ce8f2262c (diff) |
Fix readme_link_fmt variable.
* gd_diff.py (construct_table_row): Add `release` as the first
argument.
(generate_wiki_table): Update function.
* tests/test_gd_diff.py (test_construct_table_row): Update method.
Diffstat (limited to 'gd_diff.py')
-rw-r--r-- | gd_diff.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -39,7 +39,7 @@ gns_wiki = 'http://gnewsense.org' # fmt readme_link_fmt = '/'.join([sv_bzr_http, 'lh', 'gnewsense', - 'packages-parkes', '{}', 'annotate', + 'packages-{}', '{}', 'annotate', 'head:', 'debian', 'README.gNewSense']) readme_url_fmt = '/'.join([sv_bzr_gns, 'packages-{}', '{}','debian', 'README.gNewSense']) @@ -362,7 +362,7 @@ def get_wiki_page_data(release): return pkgs_noreadmes, table_data -def construct_table_row(pkg, change, reason): +def construct_table_row(release, pkg, change, reason): """Return a table row in moinmoin wiki markup. """ @@ -371,7 +371,7 @@ def construct_table_row(pkg, change, reason): if reason is None: reason = ' ' - more_info_link = readme_link_fmt.format(pkg) + more_info_link = readme_link_fmt.format(release, pkg) return '||{}||{}||{}||[[{}|more_info]]'.format(pkg, change, reason, more_info_link) @@ -386,7 +386,7 @@ def generate_wiki_table(release): for pkg, fields in table_data.items(): change = fields['Change-Type'] reason = fields['Changed-From-Debian'] - wiki_table += construct_table_row(pkg, change, reason) + '\n' + wiki_table += construct_table_row(release, pkg, change, reason) + '\n' return pkgs_noreadmes, wiki_table |