Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ dontChroot: false

script:
- "pacman-key --init"
- command: "pacman-key --populate archlinux manjaro biglinux"
# big-wm: a chave do repositório [big-wm] (big-wm-keyring, sempre na ISO
# do Big WindowMaker; o pacman.conf da edição exige a assinatura).
- command: "pacman-key --populate archlinux manjaro biglinux big-wm"
timeout: 1200

i18n:
Expand Down
23 changes: 23 additions & 0 deletions tests/test_calamares_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,3 +908,26 @@ def test_installation_log_is_kept_on_the_installed_system() -> None:
assert "/var/log/installation.log" in (
BIGWM_PROFILE / "branding/bigwindowmaker/finishedq.qml"
).read_text(encoding="utf-8")


def test_bigwindowmaker_populates_the_big_wm_key():
# The edition's pacman.conf requires signatures from [big-wm]
# (big-windowmaker/repo): without its key the installed system cannot
# update. The other profiles have no big-wm-keyring and must not ask
# for it (pacman-key --populate fails on a missing keyring).
def populate(profile):
config = yaml.safe_load(
(profile / "modules/shellprocess_initialize_pacman.conf").read_text(encoding="utf-8")
)
return [
item["command"].split()
for item in config["script"]
if isinstance(item, dict) and "--populate" in item["command"]
]

assert populate(BIGWM_PROFILE) == [
["pacman-key", "--populate", "archlinux", "manjaro", "biglinux", "big-wm"]
]
for other in BIGWM_PROFILE.parent.iterdir():
if other != BIGWM_PROFILE and (other / "modules/shellprocess_initialize_pacman.conf").exists():
assert all("big-wm" not in command for command in populate(other)), other.name