Skip to content

Commit

Permalink
Fix tools.save call
Browse files Browse the repository at this point in the history
  • Loading branch information
chausner committed Oct 19, 2021
1 parent db2a475 commit 43a9c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/soxr/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _extract_pffft_license(self):
pffft_c = tools.load(os.path.join(self._source_subfolder, "src", "pffft.c"))
license_header = re.search(r"/\* (Copyright.*?)\*/", pffft_c, re.DOTALL).group(1)
license_header = "\n".join(line.lstrip() for line in license_header.splitlines())
tools.save(license_header, os.path.join(self.package_folder, "licenses", "pffft"))
tools.save(os.path.join(self.package_folder, "licenses", "pffft"), license_header)

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

0 comments on commit 43a9c26

Please sign in to comment.