logging wasn't ready

This commit is contained in:
Louis Abel 2022-07-06 23:57:38 -07:00
parent 8f9f2646b7
commit 343fe053d9
Signed by untrusted user: label
GPG Key ID: B37E62D143879B36

View File

@ -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):
"""