1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Switch conditions

This commit is contained in:
Chris Hunt 2019-12-24 16:59:24 -05:00
parent 554db9230d
commit 5c90145462

View file

@ -542,8 +542,8 @@ class RequirementPreparer(object):
req, self.req_tracker, self.finder, self.build_isolation,
)
if link.is_existing_dir():
if download_dir:
if download_dir:
if link.is_existing_dir():
logger.info('Link is a directory, ignoring download_dir')
if self._download_should_save: