Commit e2124c84 authored by Jens Timmerman's avatar Jens Timmerman

pick better names for variables

parent c4ef24f6
...@@ -602,9 +602,8 @@ class PackageIndex(Environment): ...@@ -602,9 +602,8 @@ class PackageIndex(Environment):
continue continue
if dist in req and (dist.precedence <= SOURCE_DIST or not source): if dist in req and (dist.precedence <= SOURCE_DIST or not source):
mylocation = self.download(dist.location, tmpdir) dist.download_location = self.download(dist.location, tmpdir)
if os.path.exists(mylocation): if os.path.exists(dist.download_location):
dist._location = mylocation
return dist return dist
if force_scan: if force_scan:
...@@ -632,7 +631,7 @@ class PackageIndex(Environment): ...@@ -632,7 +631,7 @@ class PackageIndex(Environment):
) )
else: else:
self.info("Best match: %s", dist) self.info("Best match: %s", dist)
return dist.clone(location=dist._location) return dist.clone(location=dist.download_location)
def fetch(self, requirement, tmpdir, force_scan=False, source=False): def fetch(self, requirement, tmpdir, force_scan=False, source=False):
"""Obtain a file suitable for fulfilling `requirement` """Obtain a file suitable for fulfilling `requirement`
......
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