Commit 33e77c0d authored by Jason R. Coombs's avatar Jason R. Coombs

Merge another fix for regressions brought about by #375.

--HG--
branch : distribute
parents 132ef152 9b6dfd8f
......@@ -2,6 +2,14 @@
CHANGES
=======
------
0.6.49
------
* Move warning check in ``get_cache_path`` to follow the directory creation
to avoid errors when the cache path does not yet exist. Fixes the error
reported in #375.
------
0.6.48
------
......
......@@ -989,13 +989,14 @@ variable to point to an accessible directory.
extract, as it tracks the generated names for possible cleanup later.
"""
extract_path = self.extraction_path or get_default_cache()
self._warn_unsafe_extraction_path(extract_path)
target_path = os.path.join(extract_path, archive_name+'-tmp', *names)
try:
_bypass_ensure_directory(target_path)
except:
self.extraction_error()
self._warn_unsafe_extraction_path(extract_path)
self.cached_files[target_path] = 1
return target_path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment