From 4fb28979cf836fb8e6dfe8c6b141d6998b6c4593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 7 Jun 2017 15:07:07 +0200 Subject: [PATCH] gather: Display source repo of packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When multiple repos are configured in pkgset_repos, the logs should contain information on where exactly the package was pulled from. The log file in question should be in `logs//pkgset_source..log`. Fixes: #545 Signed-off-by: Lubomír Sedlář --- pungi/gather.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pungi/gather.py b/pungi/gather.py index bf95cf99..048336b6 100644 --- a/pungi/gather.py +++ b/pungi/gather.py @@ -1211,11 +1211,10 @@ class Pungi(PungiBase): """Cycle through the list of package objects and download them from their respective repos.""" - downloads = [] - for pkg in polist: - downloads.append('%s.%s' % (pkg.name, pkg.arch)) - downloads.sort() - self.logger.info("Download list: %s" % downloads) + for pkg in sorted(polist): + repo = self.ayum.repos.getRepo(pkg.repoid) + self.logger.info("Downloading %s.%s from %s", + pkg.name, pkg.arch, repo.baseurl or repo.mirrorlist) pkgdir = os.path.join(self.config.get('pungi', 'destdir'), self.config.get('pungi', 'version'),