Summary: | sys-apps/portage: emirrordist DeletionTask rename error handling could be better | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Zac Medico <zmedico> |
Component: | Core | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | InVCS |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 697734 |
Description
Zac Medico
![]() Patches posted for review: https://github.com/gentoo/portage/pull/475 https://archives.gentoo.org/gentoo-portage-dev/message/71872fbcf61541c8e468c05bcda745ae The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=e5c7b9e292c81c74c6b016aa03ef76214515f0bd commit e5c7b9e292c81c74c6b016aa03ef76214515f0bd Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-11-06 08:03:48 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-11-06 20:05:27 +0000 emaint: log FileCopier exceptions Since FileCopier now captures exceptions instead of showing a traceback, it's necessary to explicitly log them. Bug: https://bugs.gentoo.org/699400 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/_emirrordist/DeletionTask.py | 2 +- lib/portage/_emirrordist/FetchTask.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) https://gitweb.gentoo.org/proj/portage.git/commit/?id=7b8f57335c43054fe4008b7401d6ac2b3f710c1a commit 7b8f57335c43054fe4008b7401d6ac2b3f710c1a Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-11-06 08:03:36 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-11-06 20:05:27 +0000 FileCopier: capture exceptions Use ForkExecutor to capture exceptions instead of showing a full traceback. FileCopier callers will now be responsible for displaying relevant exception messages. Bug: https://bugs.gentoo.org/699400 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/tests/util/test_file_copier.py | 44 ++++++++++++++++++++++++++++++ lib/portage/util/_async/FileCopier.py | 16 ++++++----- 2 files changed, 53 insertions(+), 7 deletions(-) If self.distfile_path refers to a broken symlink then we really should just remove it rather than try to rename the canonical path which doesn't exist. (In reply to Zac Medico from comment #3) > If self.distfile_path refers to a broken symlink then we really should just > remove it rather than try to rename the canonical path which doesn't exist. Actually, we shouldn't have a symlink here since self.distfile_path was added: https://gitweb.gentoo.org/proj/portage.git/commit/?id=af9c77bd037694164755d06034a74456ec45e3ab The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a95264dd3d846c10045644d5385d96826fbbae78 commit a95264dd3d846c10045644d5385d96826fbbae78 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-11-09 05:16:02 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-11-09 05:22:38 +0000 sys-apps/portage: Bump to version 2.3.79 #673400 emerge: fix error message for unknown options #699392 emirrordist: _recycle_copier_exit UnboundLocalError #699400 emirrordist: clean up FileCopier exception logging #699548 install.py: ignore -Z / --context Bug: https://bugs.gentoo.org/697734 Bug: https://bugs.gentoo.org/673400 Bug: https://bugs.gentoo.org/699392 Bug: https://bugs.gentoo.org/699400 Bug: https://bugs.gentoo.org/699548 Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-2.3.79.ebuild | 261 +++++++++++++++++++++++++++++++++ 2 files changed, 262 insertions(+) |