Hello, I was hunting for this annoying bug for a while and got it finally. During ebuild development it, a developer might provide an invalid SRC_URI. Later, a developer would run a "ebuild test.ebuild manifest" command and it would fail, returning 404. The portage does not delete TMP file in this case and it will be /var/tmp/tmpxxx empty directory left over in the tmp directory. Could you please catch the exception and remove this directory? Thanks. sys-apps/portage-3.0.18
It sounds like this mkdtemp call: https://gitweb.gentoo.org/proj/portage.git/tree/lib/portage/package/ebuild/_spawn_nofetch.py?h=portage-3.0.19#n70 It's supposed to be cleaned up by this shutil.rmtree call in the _nofetch_exit method: https://gitweb.gentoo.org/proj/portage.git/tree/lib/portage/package/ebuild/_spawn_nofetch.py?h=portage-3.0.19#n104