See summary. Also I miss information about some of the executables of portage; The output "xpak: expecting three arguments." doesn't help really. Another example is "tbz2tool: four arguments expected".. (?) Reproducible: Always Steps to Reproduce: 1. 2. 3.
Using the xpak module for python is easier to figure out. $ python > import xpak > xpak.decompose(...) The source is in /usr/lib/python2.2/site-packages/xpak.py The other tools are a little confusing. See their use in ebuild.sh and portage.py
Thanks for this informmation. I'll have a look.