From 54b60fd4dc2485a4a451ac60ccbd7d0339992873 Mon Sep 17 00:00:00 2001 From: Anselm Hahn Date: Sat, 1 Jan 2022 21:00:46 +0100 Subject: [PATCH 1/2] Fixed Bug #4966 --- src/poetry/installation/chef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poetry/installation/chef.py b/src/poetry/installation/chef.py index 321f4fe6201..19a001c56ba 100644 --- a/src/poetry/installation/chef.py +++ b/src/poetry/installation/chef.py @@ -44,7 +44,7 @@ def is_wheel(self, archive: Path) -> bool: def get_cached_archive_for_link(self, link: Link) -> Optional[Link]: # If the archive is already a wheel, there is no need to cache it. if link.is_wheel: - pass + return archives = self.get_cached_archives_for_link(link) From 77ba542abcb3ba64bd607f90d2cee140e9b1d2f8 Mon Sep 17 00:00:00 2001 From: Anselm Hahn Date: Sun, 2 Jan 2022 10:51:47 +0100 Subject: [PATCH 2/2] Return link for wheel All test locally passed: Results (50.84s): 812 passed 3 skipped --- src/poetry/installation/chef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poetry/installation/chef.py b/src/poetry/installation/chef.py index 19a001c56ba..40d6f767625 100644 --- a/src/poetry/installation/chef.py +++ b/src/poetry/installation/chef.py @@ -44,7 +44,7 @@ def is_wheel(self, archive: Path) -> bool: def get_cached_archive_for_link(self, link: Link) -> Optional[Link]: # If the archive is already a wheel, there is no need to cache it. if link.is_wheel: - return + return link archives = self.get_cached_archives_for_link(link)