From 194082bd5c0b38d71422682e0056ae99f296ed0e Mon Sep 17 00:00:00 2001 From: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Date: Mon, 19 Dec 2022 13:08:03 +0100 Subject: [PATCH 1/2] white list recipes with proxy version in KB-H010/KB-H012/KB-H014 --- hooks/conan-center.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/conan-center.py b/hooks/conan-center.py index e9c0c6de..2ba69d06 100644 --- a/hooks/conan-center.py +++ b/hooks/conan-center.py @@ -976,7 +976,7 @@ def pre_source(output, conanfile, conanfile_path, **kwargs): @run_test("KB-H010", output) def test(out): - if conanfile.version == "system": + if conanfile.version in ["system", "proxy"]: return if not os.path.exists(conandata_source): out.error("Create a file 'conandata.yml' file with the sources " @@ -1069,7 +1069,7 @@ def post_package(output, conanfile, conanfile_path, **kwargs): this.reference = str(conanfile) @run_test("KB-H012", output) def test(out): - if conanfile.version == "system": + if conanfile.version in ["system", "proxy"]: return licenses_folder = os.path.join(os.path.join(conanfile.package_folder, "licenses")) if not os.path.exists(licenses_folder): @@ -1107,7 +1107,7 @@ def test(out): @run_test("KB-H014", output) def test(out): - if conanfile.version == "system": + if conanfile.version in ["system", "proxy"]: return # INFO: allowlist for package names From fc820d8b55d31b797bb34a90f99255073d8a2c2b Mon Sep 17 00:00:00 2001 From: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Date: Mon, 19 Dec 2022 13:30:11 +0100 Subject: [PATCH 2/2] virtual instead of proxy --- hooks/conan-center.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/conan-center.py b/hooks/conan-center.py index 2ba69d06..6a95ed02 100644 --- a/hooks/conan-center.py +++ b/hooks/conan-center.py @@ -976,7 +976,7 @@ def pre_source(output, conanfile, conanfile_path, **kwargs): @run_test("KB-H010", output) def test(out): - if conanfile.version in ["system", "proxy"]: + if conanfile.version in ["system", "virtual"]: return if not os.path.exists(conandata_source): out.error("Create a file 'conandata.yml' file with the sources " @@ -1069,7 +1069,7 @@ def post_package(output, conanfile, conanfile_path, **kwargs): this.reference = str(conanfile) @run_test("KB-H012", output) def test(out): - if conanfile.version in ["system", "proxy"]: + if conanfile.version in ["system", "virtual"]: return licenses_folder = os.path.join(os.path.join(conanfile.package_folder, "licenses")) if not os.path.exists(licenses_folder): @@ -1107,7 +1107,7 @@ def test(out): @run_test("KB-H014", output) def test(out): - if conanfile.version in ["system", "proxy"]: + if conanfile.version in ["system", "virtual"]: return # INFO: allowlist for package names