← Back to team overview

pypi-mirror team mailing list archive

[Bug 317191] [NEW] missing trailing / in base_url results in bad <a href> tags

 

Public bug reported:

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

** Affects: pypi-mirror
     Importance: Undecided
         Status: New

-- 
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: New

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



Follow ups

References