From 343fe053d951d0d9d81472904c627e88721f64aa Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 6 Jul 2022 23:57:38 -0700 Subject: [PATCH] logging wasn't ready --- iso/empanadas/empanadas/util/dnf_utils.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/iso/empanadas/empanadas/util/dnf_utils.py b/iso/empanadas/empanadas/util/dnf_utils.py index 8b70430..8bede72 100644 --- a/iso/empanadas/empanadas/util/dnf_utils.py +++ b/iso/empanadas/empanadas/util/dnf_utils.py @@ -100,12 +100,6 @@ class RepoSync: self.gpgkey = gpgkey self.checksum = rlvars['checksum'] - # The repo name should be valid - if self.repo is not None: - if self.repo not in self.repos: - self.log.error(Color.FAIL + 'Invalid repository: ' + self.repo) - raise SystemExit() - self.compose_id = '{}-{}-{}'.format( config['shortname'], rlvars['revision'], @@ -172,6 +166,11 @@ class RepoSync: self.log.info(self.revision) self.dnf_config = self.generate_conf() + # The repo name should be valid + if self.repo is not None: + if self.repo not in self.repos: + self.log.error(Color.FAIL + 'Invalid repository: ' + self.repo) + raise SystemExit() def run(self): """