when eclean-pkg deletes unused binpkg files, the metadata for them is left intact in the Packages file which could cause problems if that file is then used as a binhost. a possible fix to this would be to call emaint --fix binhost at the end of each eclean-pkg run; I don't know whether there's some api to accomplish the same.
Created attachment 190201 [details, diff]
This should work, according to my preliminary tests. It's not well-tested, though, so take proper precautions before trying it.
$ svn commit -m "Add patch from kojiro to clean binary package metadata (Bug #266996 and to clean up inconsistent error messages (Bug #268513)"
Transmitting file data .
Committed revision 581.
gentoolkit-0.3.0_rc5 released. Thanks to djanderson for the hard work on equery and gentoolkit.