mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 14:50:16 +00:00
@@ -65,7 +65,7 @@ class HashCache(SafeFileCache):
|
||||
if can_hash:
|
||||
# hash url WITH fragment
|
||||
hash_value = self.get(new_location.url)
|
||||
if not hash_value and ((new_location.scheme == "file" and not os.path.isdir(new_location.path)) or new_location.scheme != "file"):
|
||||
if not hash_value:
|
||||
hash_value = self._get_file_hash(new_location) if not new_location.url.startswith("ssh") else None
|
||||
hash_value = hash_value.encode('utf8') if hash_value else None
|
||||
if can_hash:
|
||||
|
||||
@@ -194,7 +194,7 @@ index bf69803..31b85b9 100644
|
||||
+ if can_hash:
|
||||
+ # hash url WITH fragment
|
||||
+ hash_value = self.get(new_location.url)
|
||||
+ if not hash_value and ((new_location.scheme == "file" and not os.path.isdir(new_location.path)) or new_location.scheme != "file"):
|
||||
+ if not hash_value:
|
||||
+ hash_value = self._get_file_hash(new_location) if not new_location.url.startswith("ssh") else None
|
||||
+ hash_value = hash_value.encode('utf8') if hash_value else None
|
||||
+ if can_hash:
|
||||
|
||||
Reference in New Issue
Block a user