From 7dda43c6435a29511d02553c4399d97db306655e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 11 Jan 2008 23:10:38 +0000 Subject: [PATCH] Bug #205318 - Handle errno.ENOTDIR thrown from the lstat call inside dblink._security_check(). (trunk r9188) svn path=/main/branches/2.1.2/; revision=9189 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index 60ac5aa9e..1ef6602a7 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -8636,7 +8636,7 @@ class dblink: 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 -- 2.26.2