Commit 1e5bb5e6 authored by Jens Timmerman's avatar Jens Timmerman

addressed remarks, None, None since a tuple is expected

parent 3fcd44be
...@@ -605,14 +605,15 @@ class PackageIndex(Environment): ...@@ -605,14 +605,15 @@ class PackageIndex(Environment):
mylocation = self.download(dist.location, tmpdir) mylocation = self.download(dist.location, tmpdir)
if os.path.exists(mylocation): if os.path.exists(mylocation):
return dist, mylocation return dist, mylocation
return None, None
if force_scan: if force_scan:
self.prescan() self.prescan()
self.find_packages(requirement) self.find_packages(requirement)
dist, mylocation = find(requirement) dist, mylocation = find(requirement)
if local_index is not None: if not dist and local_index is not None:
dist, mylocation = dist, mylocation if dist else find(requirement, local_index) dist, mylocation = find(requirement, local_index)
if dist is None: if dist is None:
if self.to_scan is not None: if self.to_scan is not None:
......
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