Commit cb0c8b49 authored by Peter Uittenbroek's avatar Peter Uittenbroek

Rename destination to dest.. forgot to save file

parent 6597f599
...@@ -609,15 +609,13 @@ class Installer: ...@@ -609,15 +609,13 @@ class Installer:
logger.debug('Installing %s.', repr(specs)[1:-1]) logger.debug('Installing %s.', repr(specs)[1:-1])
path = self._path path = self._path
destination = self._dest dest = self._dest
if destination is not None and destination not in path: if dest is not None and dest not in path:
path.insert(0, destination) path.insert(0, dest)
requirements = [self._constrain(pkg_resources.Requirement.parse(spec)) requirements = [self._constrain(pkg_resources.Requirement.parse(spec))
for spec in specs] for spec in specs]
if working_set is None: if working_set is None:
ws = pkg_resources.WorkingSet([]) ws = pkg_resources.WorkingSet([])
else: else:
...@@ -658,7 +656,7 @@ class Installer: ...@@ -658,7 +656,7 @@ class Installer:
except pkg_resources.VersionConflict, err: except pkg_resources.VersionConflict, err:
raise VersionConflict(err, ws) raise VersionConflict(err, ws)
if dist is None: if dist is None:
if destination: if dest:
logger.debug('Getting required %r', str(req)) logger.debug('Getting required %r', str(req))
else: else:
logger.debug('Adding required %r', str(req)) logger.debug('Adding required %r', str(req))
......
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