From 0e16214e4533a6a47a2745a9db7acee8b7a73d3e Mon Sep 17 00:00:00 2001 From: brent s Date: Wed, 24 Jun 2020 00:59:14 -0400 Subject: [PATCH] found a bug in distro selection --- repomirror/sync.py | 1 + 1 file changed, 1 insertion(+) diff --git a/repomirror/sync.py b/repomirror/sync.py index 3f0d643..0f83196 100644 --- a/repomirror/sync.py +++ b/repomirror/sync.py @@ -338,6 +338,7 @@ class Sync(object): if e is None: _logger.error('Could not find specified distro {0}; skipping'.format(d)) continue + e = e[0] logger.filehandler.close() logger.filehandler.baseFilename = os.path.join(self.logdir, '{0}.log'.format(e.attrib['name'])) distro = Distro(e[0])