aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* emaint: log FileCopier exceptionsZac Medico2019-11-061-1/+1
| | | | | | | | 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>
* emirrordist: _recycle_copier_exit UnboundLocalError (bug 699392)Zac Medico2019-11-051-1/+1
| | | | | Bug: https://bugs.gentoo.org/699392 Signed-off-by: Zac Medico <zmedico@gentoo.org>
* emirrordist: Pass path from DeletionIterator to DeletionTaskMichał Górny2019-10-211-9/+5
| | | | | | | | | | | Since DeletionIterator needs to stat the distfile and therefore find one working path for it, pass it to DeletionTask instead of recomputing it there. This also fixes wrongly assuming that first layout will always be correct. Bug: https://bugs.gentoo.org/697890 Reviewed-by: Zac Medico <zmedico@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* emirrordist: Delete potential symlinks for all layoutsMichał Górny2019-10-171-1/+1
| | | | | | | | | | | | | Unlink for all distfile layouts rather than for all but primary. This wrongly assumed that the primary layout will always be removed as a result of earlier code. However, the rename() call correctly assumes that the primary layout may be an old symlink, and operates on realpath(). Therefore, the real file from a secondary layout may be renamed, leaving dangling symlink. Bug: https://bugs.gentoo.org/697906 Reviewed-by: Zac Medico <zmedico@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* emirrordist: Implement mirror layout.conf supportMichał Górny2019-10-091-9/+28
| | | | | | | | | | | | Read mirror layout from layout.conf in distfiles directory. When multiple layouts are used, fetch according to the first one and then hardlink according to the remaining layouts. Similarly, when deleting recycle or delete according to the first layout, then unlink according to all remaining layouts. Reviewed-by: Zac Medico <zmedico@gentoo.org> Closes: https://github.com/gentoo/portage/pull/463 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Rename pym→lib, for better distutils-r1 interoperabilityMichał Górny2018-07-181-0/+129
Closes: https://github.com/gentoo/portage/pull/343