feat: new configurations for APK/Java/Python/Yum

Signed-off-by: d9pouces <github@19pouces.net>
This commit is contained in:
d9pouces
2026-09-03 22:56:28 +02:00
parent 586f091eeb
commit 35c3437343
20 changed files with 488 additions and 42 deletions
+3 -3
View File
@@ -9,7 +9,6 @@ as new, enabled `.sources` files.
from __future__ import annotations
import base64
import logging
from pathlib import Path
@@ -86,8 +85,9 @@ class AptModule(Module):
@staticmethod
def _write_configured_keys(context: Context) -> None:
for key in context.config.configurations.apt.keys:
content = base64.b64decode(key.content)
context.write_file(f"{_KEYRINGS_DIR}/{key.name}.asc", content)
context.write_file(
f"{_KEYRINGS_DIR}/{key.name}.asc", key.content.encode("utf-8")
)
logger.info("installed apt keyring %s", key.name)
@staticmethod