Skip to content

Commit

Permalink
Improved pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
franramirez688 committed Nov 12, 2021
1 parent 3c130d0 commit 4ecdef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/conan-center.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ def test(out):

@run_test("KB-H065", output)
def test(out):
pattern = re.compile(r"self\.cpp_info\..*(names\[|filenames\[|build_modules)")
pattern = re.compile(r"self\.cpp_info\..*\.(names\[|filenames\[|build_modules)")
if pattern.search(conanfile_content):
out.error("Using 'names', 'filenames' and 'build_modules' is deprecated from Conan 1.42. "
"Use 'set_property' and 'get_property' methods of the cpp_info object instead.")
Expand Down

0 comments on commit 4ecdef0

Please sign in to comment.