aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2019-11-06 11:56:52 -0800
committerZac Medico <zmedico@gentoo.org>2019-11-06 12:03:42 -0800
commit47e0d5b5390873edd0020245307b0febad84a5b5 (patch)
tree8bcbe047b48b22a74b8d221f9cc99539d9bffd66
parentemirrordist: _recycle_copier_exit UnboundLocalError (bug 699392) (diff)
downloadportage-47e0d5b5390873edd0020245307b0febad84a5b5.tar.gz
portage-47e0d5b5390873edd0020245307b0febad84a5b5.tar.bz2
portage-47e0d5b5390873edd0020245307b0febad84a5b5.zip
emirrordist: _make_layout_links msg UnboundLocalError
Fixes: 0d34d89d5028 ("emirrordist: Implement mirror layout.conf support") Bug: https://bugs.gentoo.org/699392 Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--lib/portage/_emirrordist/FetchTask.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/portage/_emirrordist/FetchTask.py b/lib/portage/_emirrordist/FetchTask.py
index 6f547d397..ca573fa49 100644
--- a/lib/portage/_emirrordist/FetchTask.py
+++ b/lib/portage/_emirrordist/FetchTask.py
@@ -585,6 +585,8 @@ class FetchTask(CompositeTask):
self._success()
self.returncode = os.EX_OK
else:
+ msg = "failed to create distfiles layout {}".format(
+ "symlink" if self.config.options.symlinks else "hardlink")
self.config.log_failure("%s\t%s\t%s" %
(self.cpv, self.distfile, msg))
self.config.file_failures[self.distfile] = self.cpv