From c46cf4d2e85f0f359dbe76126f101837cab170a8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 11 Jan 2008 23:07:10 +0000 Subject: Bug #205318 - Handle errno.ENOTDIR thrown from the lstat call inside dblink._security_check(). svn path=/main/trunk/; revision=9188 --- pym/portage/dbapi/vartree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index efaee6ede..98f751f50 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1701,7 +1701,7 @@ class dblink(object): 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 -- cgit v1.2.3-1-g7c22