[entropy.client] handle errno.ENOTDIR when using lstat

This commit is contained in:
Fabio Erculiani
2013-07-15 23:25:13 +02:00
parent b009b304d5
commit 60377dee8d
+3 -3
View File
@@ -1985,9 +1985,9 @@ class Package:
try:
os.lstat(sys_root_item_encoded)
except OSError as err:
if err.errno != errno.ENOENT:
raise
continue # skip file, does not exist
if err.errno in (errno.ENOENT, errno.ENOTDIR):
continue # skip file, does not exist
raise
except UnicodeEncodeError:
msg = _("This package contains a badly encoded file !!!")