summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-01-11 23:10:38 +0000
committerZac Medico <zmedico@gentoo.org>2008-01-11 23:10:38 +0000
commit7dda43c6435a29511d02553c4399d97db306655e (patch)
treeea8be91ab87c257968f26d45e153e796898e758a
parent10b8ce68c3088f3fba8ce472ed6e22ab00eb2087 (diff)
downloadportage-7dda43c6435a29511d02553c4399d97db306655e.tar.gz
portage-7dda43c6435a29511d02553c4399d97db306655e.tar.bz2
portage-7dda43c6435a29511d02553c4399d97db306655e.zip
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
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
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