Skip to content

Commit 1db6780

Browse files
committed
ops
1 parent 030a572 commit 1db6780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/network/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _write_to_file(self, path: str, writer_func: Callable[[BinaryIO], Any]) -> N
8686
writer_func(f)
8787
# Inherit the read/write permissions of the cache directory
8888
# to enable multi-user cache use-cases.
89-
copy_directory_permissions(os.path.dirname(path), f)
89+
copy_directory_permissions(self.directory, f)
9090

9191
replace(f.name, path)
9292

0 commit comments

Comments
 (0)