Skip to content

Commit

Permalink
(#5415) sqlite3: replace os.rename with tools.rename
Browse files Browse the repository at this point in the history
Fixes #5359 for sqlite3.
  • Loading branch information
klimkin authored May 4, 2021
1 parent 5e76d62 commit e16b656
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions recipes/sqlite3/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,7 @@ def validate(self):
raise ConanInvalidConfiguration("build_executable=True cannot be combined with enable_default_vfs=False")

def source(self):
tools.get(**self.conan_data["sources"][self.version])
url = self.conan_data["sources"][self.version]["url"]
archive_name = os.path.basename(url)
archive_name = os.path.splitext(archive_name)[0]
os.rename(archive_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 e16b656

Please sign in to comment.