From aa9e16070d2eff07615d420b472a7ad039df7e63 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 29 May 2024 17:50:34 -0700 Subject: [PATCH] fix dict --- iso/empanadas/empanadas/util/dnf_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iso/empanadas/empanadas/util/dnf_utils.py b/iso/empanadas/empanadas/util/dnf_utils.py index 51ee4e5..5b0c003 100644 --- a/iso/empanadas/empanadas/util/dnf_utils.py +++ b/iso/empanadas/empanadas/util/dnf_utils.py @@ -106,7 +106,7 @@ class RepoSync: self.repo = repo self.extra_files = rlvars['extra_files'] self.gpgkey = rlvars['gpg_key'] - if rlvars['repo_gpg_key']: + if 'repo_gpg_key' in rlvars: self.gpgkey = rlvars['gpg_key'] + rlvars['repo_gpg_key'] self.checksum = rlvars['checksum'] self.gpg_check = gpg_check @@ -1641,7 +1641,7 @@ class SigRepoSync: self.sigrepos = sigvars['repo'].keys() self.extra_files = sigvars['extra_files'] self.gpgkey = rlvars['gpg_key'] - if rlvars['repo_gpg_key']: + if 'repo_gpg_key' in rlvars: self.gpgkey = rlvars['gpg_key'] + rlvars['repo_gpg_key'] #self.arches = sigvars['allowed_arches'] self.project_id = sigvars['project_id']