depot/third_party/nixpkgs/pkgs/development/python-modules/python-matter-server/link-paa-root-certs.patch
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

44 lines
1.5 KiB
Diff

diff --git a/matter_server/server/const.py b/matter_server/server/const.py
index 8cca3cf..43f02f5 100644
--- a/matter_server/server/const.py
+++ b/matter_server/server/const.py
@@ -14,6 +14,8 @@ DATA_MODEL_SCHEMA_VERSION = 6
# Keep default location inherited from early version of the Python
# bindings.
DEFAULT_PAA_ROOT_CERTS_DIR: Final[pathlib.Path] = (
+ pathlib.Path("@paacerts@"))
+(
pathlib.Path(__file__)
.parent.resolve()
.parent.resolve()
diff --git a/matter_server/server/helpers/paa_certificates.py b/matter_server/server/helpers/paa_certificates.py
index e530838..fdd6025 100644
--- a/matter_server/server/helpers/paa_certificates.py
+++ b/matter_server/server/helpers/paa_certificates.py
@@ -64,6 +64,8 @@ async def fetch_dcl_certificates(
fetch_production_certificates: bool = True,
) -> int:
"""Fetch DCL PAA Certificates."""
+ return 0
+
LOGGER.info("Fetching the latest PAA root certificates from DCL.")
fetch_count: int = 0
base_urls = set()
@@ -124,6 +126,8 @@ async def fetch_dcl_certificates(
async def fetch_git_certificates(paa_root_cert_dir: Path) -> int:
"""Fetch Git PAA Certificates."""
+ return 0
+
fetch_count = 0
LOGGER.info("Fetching the latest PAA root certificates from Git.")
@@ -159,6 +163,8 @@ async def fetch_certificates(
fetch_production_certificates: bool = True,
) -> int:
"""Fetch PAA Certificates."""
+ return 0
+
loop = asyncio.get_running_loop()
if not paa_root_cert_dir.is_dir():