Skip to content

Commit

Permalink
aravis: Review suggestion. Replace shutil.move() with tools.rename().
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0 committed Jan 4, 2022
1 parent 29f46c7 commit d7366d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions recipes/aravis/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from conans.errors import ConanInvalidConfiguration
import os
import glob
import shutil


class AravisConan(ConanFile):
Expand Down Expand Up @@ -128,7 +127,7 @@ def _fix_library_names(self, path):
for filename_old in glob.glob("*.a"):
filename_new = filename_old[3:-2] + ".lib"
self.output.info("rename %s into %s" % (filename_old, filename_new))
shutil.move(filename_old, filename_new)
tools.rename(filename_old, filename_new)

def package(self):
self.copy("COPYING", src=self._source_subfolder, dst="licenses", keep_path=False)
Expand Down

0 comments on commit d7366d0

Please sign in to comment.