Skip to content

Commit

Permalink
(conan-io#5412) bzip2: replace os.rename with tools.rename
Browse files Browse the repository at this point in the history
* bzip2: replace os.rename with tools.rename

Fixes conan-io#5359 for bzip2.

* Update recipes/bzip2/all/conanfile.py

Co-authored-by: ericLemanissier <[email protected]>

* Update recipes/bzip2/all/conanfile.py

Co-authored-by: ericLemanissier <[email protected]>

Co-authored-by: ericLemanissier <[email protected]>
  • Loading branch information
2 people authored and AlvaroFS committed May 7, 2021
1 parent 902ec30 commit 0870534
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions recipes/bzip2/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ def configure(self):
del self.settings.compiler.cppstd

def source(self):
tools.get(**self.conan_data["sources"][self.version])
folder_name = "%s-%s" % (self.name, self.version)
os.rename(folder_name, self._source_subfolder)
tools.get(**self.conan_data["sources"][self.version], destination=self._source_subfolder, strip_root=True)

def _configure_cmake(self):
if self._cmake:
Expand Down

0 comments on commit 0870534

Please sign in to comment.