We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 030a572 commit 1db6780Copy full SHA for 1db6780
src/pip/_internal/network/cache.py
@@ -86,7 +86,7 @@ def _write_to_file(self, path: str, writer_func: Callable[[BinaryIO], Any]) -> N
86
writer_func(f)
87
# Inherit the read/write permissions of the cache directory
88
# to enable multi-user cache use-cases.
89
- copy_directory_permissions(os.path.dirname(path), f)
+ copy_directory_permissions(self.directory, f)
90
91
replace(f.name, path)
92
0 commit comments