[Python-checkins] python/nondist/sandbox/setuptools/setuptools package_index.py, 1.19, 1.20
pje@users.sourceforge.net
pje at users.sourceforge.net
Wed Sep 14 05:28:13 CEST 2005
Update of /cvsroot/python/python/nondist/sandbox/setuptools/setuptools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25736/setuptools
Modified Files:
package_index.py
Log Message:
Correctly handle URL fragments in --find-links.
Index: package_index.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/package_index.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- package_index.py 22 Aug 2005 01:13:14 -0000 1.19
+++ package_index.py 14 Sep 2005 03:28:10 -0000 1.20
@@ -44,6 +44,7 @@
scheme, server, path, parameters, query, fragment = urlparse.urlparse(url)
base = urllib2.unquote(path.split('/')[-1])
+ if '#' in base: base, fragment = base.split('#',1)
dists = distros_for_location(url, base, metadata)
if fragment and not dists:
match = EGG_FRAGMENT.match(fragment)
@@ -79,7 +80,6 @@
return [] # no extension matched
-
def distros_for_filename(filename, metadata=None):
"""Yield possible egg or source distribution objects based on a filename"""
return distros_for_location(
More information about the Python-checkins
mailing list