Index: pym/portage/__init__.py =================================================================== --- pym/portage/__init__.py (revision 13615) +++ pym/portage/__init__.py (working copy) @@ -4822,7 +4822,10 @@ eout.eend(0) for f in myfiles: eout.ebegin("checking %s ;-)" % f) - mf.checkFileHashes(mf.findFile(f), f) + ftype = mf.findFile(f) + if ftype is None: + raise KeyError(f) + mf.checkFileHashes(ftype, f) eout.eend(0) except KeyError, e: eout.eend(1)