Index: pym/portage.py =================================================================== --- pym/portage.py (revision 9188) +++ pym/portage.py (revision 9189) @@ -8636,7 +8636,7 @@ try: s = os.lstat(path) except OSError, e: - if e.errno != errno.ENOENT: + if e.errno not in (errno.ENOENT, errno.ENOTDIR): raise del e continue