pypi-mirror team mailing list archive
-
pypi-mirror team
-
Mailing list archive
-
Message #00040
[Bug 317191] Re: missing trailing / in base_url results in bad <a href> tags
** Changed in: pypi-mirror
Status: New => Fix Released
--
missing trailing / in base_url results in bad <a href> tags
https://bugs.launchpad.net/bugs/317191
You received this bug notification because you are a member of PyPI
Mirror, which is the registrant for PyPI Mirror.
Status in PyPI replication project: Fix Released
Bug description:
I originally set my base_url to be http://pypi.it.uwosh.edu (no trailing slash). At some point, the various index.html files generated by pypimirror had bad URLs like this:
<a
href="http://pypi.it.uwosh.eduzope.wfmc/zope.wfmc-3.4.0.tar.gz#md5=da62f6147b359dd4be53c367337b7d02">zope.wfmc-3.4.0.tar.gz</a>
I had to run a sed command to fix these, since adding a trailing slash to the base_url and rerunning pypimirror (with --update-fetch as well as --initial-fetch and -i) did not seem to fix the problem.
find . -name index.html -exec sed -e 's/pypi\.it\.uwosh\.edu\([^/]\)/pypi\.it\.uwosh\.edu\/\1/' {} ';'
References