diff --git a/pmb/config/workdir.py b/pmb/config/workdir.py index 49e38dda..66702f81 100644 --- a/pmb/config/workdir.py +++ b/pmb/config/workdir.py @@ -30,7 +30,7 @@ def chroot_save_init(suffix: Chroot): cfg[key] = {} # Update sections - channel = pmb.config.pmaports.read_config(pkgrepo_default_path())["channel"] + channel = pmb.config.pmaports.read_config()["channel"] cfg["chroot-channels"][str(suffix)] = channel cfg["chroot-init-dates"][str(suffix)] = str(int(time.time())) @@ -83,9 +83,7 @@ def chroot_check_channel(chroot: Chroot): if key not in cfg or str(chroot) not in cfg[key]: raise RuntimeError(f"{msg_unknown} {msg_again}") - # Exclude systemd repo - aports = pkgrepo_default_path() - channel = pmb.config.pmaports.read_config(aports)["channel"] + channel = pmb.config.pmaports.read_config()["channel"] channel_cfg = cfg[key][str(chroot)] if channel != channel_cfg: raise RuntimeError(f"Chroot '{chroot}' was created for the"