1 |
commit: 47e0d5b5390873edd0020245307b0febad84a5b5 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 6 19:56:52 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 6 20:03:42 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=47e0d5b5 |
7 |
|
8 |
emirrordist: _make_layout_links msg UnboundLocalError |
9 |
|
10 |
Fixes: 0d34d89d5028 ("emirrordist: Implement mirror layout.conf support") |
11 |
Bug: https://bugs.gentoo.org/699392 |
12 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
13 |
|
14 |
lib/portage/_emirrordist/FetchTask.py | 2 ++ |
15 |
1 file changed, 2 insertions(+) |
16 |
|
17 |
diff --git a/lib/portage/_emirrordist/FetchTask.py b/lib/portage/_emirrordist/FetchTask.py |
18 |
index 6f547d397..ca573fa49 100644 |
19 |
--- a/lib/portage/_emirrordist/FetchTask.py |
20 |
+++ b/lib/portage/_emirrordist/FetchTask.py |
21 |
@@ -585,6 +585,8 @@ class FetchTask(CompositeTask): |
22 |
self._success() |
23 |
self.returncode = os.EX_OK |
24 |
else: |
25 |
+ msg = "failed to create distfiles layout {}".format( |
26 |
+ "symlink" if self.config.options.symlinks else "hardlink") |
27 |
self.config.log_failure("%s\t%s\t%s" % |
28 |
(self.cpv, self.distfile, msg)) |
29 |
self.config.file_failures[self.distfile] = self.cpv |