Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#60556 - [arch-wiki-lite] fails to build

Attached to Project: Community Packages
Opened by Erich Eckner (deepthought) - Tuesday, 23 October 2018, 09:56 GMT
Last edited by Kyle Keen (keenerd) - Tuesday, 13 November 2018, 04:22 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

extra-x86_64-build fails with:

error parsing /usr/share/doc/arch-wiki/html/nl/Category:Database_management_systems.html
Traceback (most recent call last):
File "wiki_lite.py", line 183, in <module>
main()
File "wiki_lite.py", line 158, in main
text = html_to_text(html)
File "wiki_lite.py", line 121, in html_to_text
return remove_escapes(remove_tags(html))
File "wiki_lite.py", line 102, in remove_tags
html = body.findall(html)[0]
IndexError: list index out of range

Additional info:
* package version(s)
arch-wiki-lite 20170410-1 (git revision b3cf0160763bd7cfa6581460907cd4ee3191bb83)
* config and/or log files etc.
full log is attached

Steps to reproduce:
> git checkout b3cf0160763bd7cfa6581460907cd4ee3191bb83
> cd arch-wiki-lite/repos/community-any
> extra-x86_64-build
This task depends upon

Closed by  Kyle Keen (keenerd)
Tuesday, 13 November 2018, 04:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  arch-wiki-lite 20181022-1
Comment by loqs (loqs) - Saturday, 27 October 2018, 12:22 GMT
changing wiki_lite.py line 101 from
body = re.compile('^<body class="mediawiki.*?<li id="copyright">', flags)
to
body = re.compile('^<body class="mediawiki.*?<li id="footer-info-copyright">', flags)
resolves the issue of the regular expression returning an empty list. Was the formatting of the wiki changed?
Appears to be an upstream bug.

Loading...