Summary: | dispatch-conf: 'file exists' on symlinks | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Piotr Karbowski (RETIRED) <slashbeast> |
Component: | Core - Configuration | 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: | 484436 |
Description
Piotr Karbowski (RETIRED)
2015-01-06 22:16:28 UTC
What version of sys-apps/portage do you have? That would be sys-apps/portage-2.2.15. When I added symlink support for bug 485598, I didn't account for the fact that os.symlink fails if the destination file exists. For regular files, it uses shutil.copy2, which can also fail if the destination is a symlink. So, we should have it first remove the destination file regardless of the file type. I have a patch in the following branch: https://github.com/zmedico/portage/tree/bug_535850 I've posted it for review here: http://thread.gmane.org/gmane.linux.gentoo.portage.devel/5064 This is in the master branch now: https://github.com/gentoo/portage/commit/79eb7417454220f04def35e428b876b97fdaabf4 Released in portage-2.2.16 |