diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py index 4fead23652ab..3c6bfc47b95c 100644 --- a/pyanaconda/kickstart.py +++ b/pyanaconda/kickstart.py @@ -1575,7 +1575,7 @@ def execute(self, storage, ksdata, instClass): parents=request) storage.createDevice(luksdev) -class RepoData(commands.repo.F21_RepoData): +class RepoData(commands.repo.F23_RepoData): def __init__(self, *args, **kwargs): """ Add enabled kwarg @@ -1585,7 +1585,7 @@ def __init__(self, *args, **kwargs): self.enabled = kwargs.pop("enabled", True) self.repo_id = kwargs.pop("repo_id", None) - commands.repo.F21_RepoData.__init__(self, *args, **kwargs) + commands.repo.F23_RepoData.__init__(self, *args, **kwargs) class ReqPart(commands.reqpart.F23_ReqPart): def execute(self, storage, ksdata, instClass): diff --git a/pyanaconda/packaging/dnfpayload.py b/pyanaconda/packaging/dnfpayload.py index db49d66d7f2e..7d4dffb20dba 100644 --- a/pyanaconda/packaging/dnfpayload.py +++ b/pyanaconda/packaging/dnfpayload.py @@ -269,6 +269,10 @@ def _add_repo(self, ksrepo): if ksrepo.excludepkgs: repo.exclude = ksrepo.excludepkgs + if ksrepo.gpgkey: + repo.gpgkey = ksrepo.gpgkey + repo.gpgcheck = True + # If this repo is already known, it's one of two things: # (1) The user is trying to do "repo --name=updates" in a kickstart file # and we should just know to enable the already existing on-disk