Skip to content

Commit

Permalink
fix error in file moving from short_paths cache
Browse files Browse the repository at this point in the history
  • Loading branch information
memsharded committed Nov 24, 2020
1 parent dd375cb commit 69d3eca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conans/client/remote_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_recipe(self, ref, remote):
uncompress_file(tgz_file, export_folder, output=self._output)
mkdir(export_folder)
for file_name, file_path in zipped_files.items(): # copy CONANFILE
os.rename(file_path, os.path.join(export_folder, file_name))
shutil.move(file_path, os.path.join(export_folder, file_name))

# Make sure that the source dir is deleted
rm_conandir(package_layout.source())
Expand Down Expand Up @@ -176,7 +176,7 @@ def _get_package(self, layout, pref, remote, output, recorder):
uncompress_file(tgz_file, package_folder, output=self._output)
mkdir(package_folder) # Just in case it doesn't exist, because uncompress did nothing
for file_name, file_path in zipped_files.items(): # copy CONANINFO and CONANMANIFEST
os.rename(file_path, os.path.join(package_folder, file_name))
shutil.move(file_path, os.path.join(package_folder, file_name))

# Issue #214 https://github.com/conan-io/conan/issues/214
touch_folder(package_folder)
Expand Down

0 comments on commit 69d3eca

Please sign in to comment.