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

Use the directory locking for the filecache

This commit is contained in:
Donald Stufft 2015-05-20 14:05:49 -04:00
parent ee0236ccb1
commit 8af4872ff6
2 changed files with 4 additions and 1 deletions

View file

@ -59,6 +59,9 @@
* Allowing using extras when installing from a file path without requiring the
use of an editable (:pull`2785`).
* Fix an infinite loop when the cache directory is stored on a file system
which does not support hard links (:pull:`2796`).
**6.1.1 (2015-04-07)**

View file

@ -342,7 +342,7 @@ class PipSession(requests.Session):
# require manual evication from the cache to fix it.
if cache:
secure_adapter = CacheControlAdapter(
cache=SafeFileCache(cache),
cache=SafeFileCache(cache, use_dir_lock=True),
max_retries=retries,
)
else: