Create Thüringen branding edition on shared core
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Publish Thüringen packages via the pinned core's secure uploader."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import importlib.util
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parent.parent
|
||||
CORE = Path(os.environ.get("SYNADM_TUI_CORE", ROOT / "vendor" / "synadm-tui")).resolve()
|
||||
SPEC = importlib.util.spec_from_file_location("synadm_core_publish_packages", CORE / "scripts" / "publish_packages.py")
|
||||
if not SPEC or not SPEC.loader:
|
||||
raise SystemExit("Uploadmodul des synadm-tui-Core fehlt.")
|
||||
module = importlib.util.module_from_spec(SPEC)
|
||||
sys.modules[SPEC.name] = module
|
||||
SPEC.loader.exec_module(module)
|
||||
module.ROOT = ROOT
|
||||
module.PACKAGE_DIR = ROOT / "dist" / "packages"
|
||||
module.DEFAULT_DISTRIBUTION = "thueringen"
|
||||
module.DEFAULT_RPM_GROUP = "thueringen"
|
||||
|
||||
|
||||
raise SystemExit(module.main())
|
||||
Reference in New Issue
Block a user