Skip to content

Commit 5c90145

Browse files
committed
Switch conditions
1 parent 554db92 commit 5c90145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pip/_internal/operations/prepare.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ def prepare_linked_requirement(
542542
req, self.req_tracker, self.finder, self.build_isolation,
543543
)
544544

545-
if link.is_existing_dir():
546-
if download_dir:
545+
if download_dir:
546+
if link.is_existing_dir():
547547
logger.info('Link is a directory, ignoring download_dir')
548548

549549
if self._download_should_save:

0 commit comments

Comments
 (0)