Commit 54f4c8f7 authored by PJ Eby's avatar PJ Eby

If more than one URL appears to describe the exact same distribution, prefer

the shortest one.  This helps to avoid "table of contents" CGI URLs like the
ones on effbot.org.

--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041550
parent 016ae6c4
......@@ -870,6 +870,10 @@ Known Issues
* Fixed ``.pth`` file processing picking up nested eggs (i.e. ones inside
"baskets") when they weren't explicitly listed in the ``.pth`` file.
* If more than one URL appears to describe the exact same distribution, prefer
the shortest one. This helps to avoid "table of contents" CGI URLs like the
ones on effbot.org.
0.6a8
* Update for changed SourceForge mirror format
......
......@@ -1754,7 +1754,7 @@ class Distribution(object):
hashcmp = property(
lambda self: (
getattr(self,'parsed_version',()), self.precedence, self.key,
self.location, self.py_version, self.platform
-len(self.location), self.location, self.py_version, self.platform
)
)
def __cmp__(self, other): return cmp(self.hashcmp, other)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment