missing trailing / in base_url results in bad <a href> tags

Bug #317191 reported by T. Kim Nguyen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyPI Mirror
Fix Released
Undecided
Unassigned

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/' {} ';'

Andreas Jung (ajung)
Changed in pypi-mirror:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.