Skip to content

Commit

Permalink
Update recipe to satisfy YAML linter for conandata.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
goodtune committed Nov 17, 2022
1 parent 9904b41 commit f91dde9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions recipes/libvault/all/conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ patches:
"0.51.0":
- patch_file: "patches/fix-cmake-0.51.0.patch"
base_path: "source_subfolder"
patch_type: "conan"
patch_description: "use libcurl from conan center"
"0.48.0":
- patch_file: "patches/fix-cmake-0.48.0.patch"
base_path: "source_subfolder"
patch_type: "conan"
patch_description: "use libcurl from conan center"
9 changes: 5 additions & 4 deletions recipes/libvault/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from conans import ConanFile, tools, CMake
import os

from conan.tools.files import apply_conandata_patches
from conans import CMake, ConanFile, tools
from conans.errors import ConanInvalidConfiguration
from conans.tools import Version
import os

required_conan_version = ">=1.33.0"

Expand Down Expand Up @@ -93,8 +95,7 @@ def _configure_cmake(self):
return self._cmake

def build(self):
for patch in self.conan_data.get("patches", {}).get(self.version, []):
tools.patch(**patch)
apply_conandata_patches(self)
cmake = self._configure_cmake()
cmake.build()

Expand Down

0 comments on commit f91dde9

Please sign in to comment.