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
+4 -4
View File
@@ -11,7 +11,6 @@ produce a single key file.
from __future__ import annotations
import base64
import hashlib
import logging
from pathlib import Path
@@ -74,8 +73,9 @@ class ApkModule(Module):
lines.append(repository.url)
logger.info("added apk repository %s", repository.url)
if repository.key:
content = base64.b64decode(repository.key)
filename = _key_filename(content)
context.write_file(f"{_KEYS_DIR}/{filename}", content)
filename = _key_filename(repository.key.encode("utf-8"))
context.write_file(
f"{_KEYS_DIR}/{filename}", repository.key.encode("utf-8")
)
logger.info("installed apk key %s", filename)
return lines