The wildcard handling in portage.keywords is not consistent.
tamiko@bluebird ~ % eix -I libkdepim
Available versions: (4.4) 4.4.5 ~4.4.6 4.4.7 4.4.8 4.4.9!t ~4.4.10!t
So version 4.4.10 of branch 4.4 has an ~amd64-keyword.
It is possible to unmask version 4.4.10 by
in package.keywords so that a
# emerge -1p "=kde-base/libkdepim-4.4.10"
incorrectly unmasks the package in emerge. (kde-base/libkdepim:4.5 is handled correctly).
is handled as a bad package atom by emerge.
app-portage/eix does handle this two cases correctly. (Or differently - whatever the definition of correctly might be ;-) )
Steps to Reproduce: