summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <bts@square-r00t.net>2020-06-24 00:59:14 -0400
committerbrent s <bts@square-r00t.net>2020-06-24 00:59:14 -0400
commit0e16214e4533a6a47a2745a9db7acee8b7a73d3e (patch)
tree6a6042696f2507784dfaf617d0b5bc6233fbc991
parent0ff9af4c486e1af9c31f9dc0e1da4a387d86cdd2 (diff)
downloadRepoMirror-0e16214e4533a6a47a2745a9db7acee8b7a73d3e.tar.xz
found a bug in distro selection
-rw-r--r--repomirror/sync.py1
1 files changed, 1 insertions, 0 deletions
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])