aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorPJ Eby <distutils-sig@python.org>2009-11-05 16:00:25 +0000
committerPJ Eby <distutils-sig@python.org>2009-11-05 16:00:25 +0000
commit4478cdc28c1550f64b7918e3d88af08d0c28a0cb (patch)
treec56ff0add11aa6a36a9d5771b1011990df3cc761 /setuptools/package_index.py
parent03cee8b587cf41af1a4ad1071cb6aa7b97c4f182 (diff)
downloadexternal_python_setuptools-4478cdc28c1550f64b7918e3d88af08d0c28a0cb.tar.gz
external_python_setuptools-4478cdc28c1550f64b7918e3d88af08d0c28a0cb.tar.bz2
external_python_setuptools-4478cdc28c1550f64b7918e3d88af08d0c28a0cb.zip
Backport to 0.6
--HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4076123
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 1a4fabde..78b07f4b 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -471,8 +471,9 @@ class PackageIndex(Environment):
(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 @@ class PackageIndex(Environment):
return None
-
def gen_setup(self, filename, fragment, tmpdir):
match = EGG_FRAGMENT.match(fragment)
dists = match and [d for d in