Bug #205318 - Handle errno.ENOTDIR thrown from the lstat call
authorZac Medico <zmedico@gentoo.org>
Fri, 11 Jan 2008 23:10:38 +0000 (23:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 11 Jan 2008 23:10:38 +0000 (23:10 -0000)
inside dblink._security_check(). (trunk r9188)

svn path=/main/branches/2.1.2/; revision=9189

pym/portage.py

index 60ac5aa9e22b68910592361365b1c3e97ea5b5f9..1ef6602a78c0c000f75329d89f263cb2b250bb52 100644 (file)
@@ -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