Skip to content

Commit

Permalink
fix build without patches
Browse files Browse the repository at this point in the history
  • Loading branch information
n-bes committed Mar 4, 2020
1 parent 8726ef5 commit 5c20284
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recipes/botan/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ def source(self):

def build(self):
if "patches" in self.conan_data:
for patch in self.conan_data["patches"][self.version]:
tools.patch(**patch)
if self.version in self.conan_data["patches"]:
for patch in self.conan_data["patches"][self.version]:
tools.patch(**patch)
with tools.chdir('sources'):
self.run(self._configure_cmd)
self.run(self._make_cmd)
Expand Down

0 comments on commit 5c20284

Please sign in to comment.