In all the axel's ebuild the example FETCHCOMMAND is as follows: FETCHCOMMAND='\''axel -a -o "\${DISTDIR}/\${FILE}.axel" "\${URI}" && mv "\${DISTDIR}/\${FILE}.axel" "\${DISTDIR}/\${FILE}"'\' However, this seems to be problematic because when axel is executed the argc and argv arguments passed to maint will also contain the second part (&& mv "\${DISTDIR}/\${FILE}.axel" "\${DISTDIR}/\${FILE}") thus messing up the download process. I am not sure why this happens. My guess is that this due to the spawn functionality used in the portage python library when launching the fetchcommand. I still like using a '.axel' extension and doing 'mv' when the download is successful, therefore my recommendation is be to use a wrapper bash script containing the commands and using it as FETCHCOMMAND.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0af532ca3698a3d6d7e8272660dbe8df0d3b6799 commit 0af532ca3698a3d6d7e8272660dbe8df0d3b6799 Author: Piotr Karbowski <slashbeast@gentoo.org> AuthorDate: 2020-04-07 19:33:27 +0000 Commit: Piotr Karbowski <slashbeast@gentoo.org> CommitDate: 2020-04-07 19:36:26 +0000 net-misc/axel-2.17.8: version bump. Closes: https://bugs.gentoo.org/628792 Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org> net-misc/axel/Manifest | 1 + net-misc/axel/axel-2.17.8.ebuild | 41 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+)