[Python-checkins] r76122 - sandbox/trunk/setuptools/setuptools/package_index.py
phillip.eby
python-checkins at python.org
Thu Nov 5 16:58:09 CET 2009
Author: phillip.eby
Date: Thu Nov 5 16:58:09 2009
New Revision: 76122
Log:
Fix incorrect error message/traceback when no download
is found.
Modified:
sandbox/trunk/setuptools/setuptools/package_index.py
Modified: sandbox/trunk/setuptools/setuptools/package_index.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/package_index.py (original)
+++ sandbox/trunk/setuptools/setuptools/package_index.py Thu Nov 5 16:58:09 2009
@@ -471,8 +471,9 @@
(source and "a source distribution of " or ""),
requirement,
)
- self.info("Best match: %s", dist)
- return dist.clone(location=self.download(dist.location, tmpdir))
+ else:
+ self.info("Best match: %s", dist)
+ return dist.clone(location=self.download(dist.location, tmpdir))
def fetch(self, requirement, tmpdir, force_scan=False, source=False):
@@ -489,7 +490,6 @@
return None
-
def gen_setup(self, filename, fragment, tmpdir):
match = EGG_FRAGMENT.match(fragment)
dists = match and [d for d in
More information about the Python-checkins
mailing list