diff options
Diffstat (limited to 'bitbake/lib/bb/parse/__init__.py')
-rw-r--r-- | bitbake/lib/bb/parse/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py index 4a78e183ab..1becaa4f02 100644 --- a/bitbake/lib/bb/parse/__init__.py +++ b/bitbake/lib/bb/parse/__init__.py | |||
@@ -26,9 +26,10 @@ File parsers for the BitBake build tools. | |||
26 | 26 | ||
27 | handlers = [] | 27 | handlers = [] |
28 | 28 | ||
29 | import errno | ||
30 | import logging | ||
29 | import os | 31 | import os |
30 | import stat | 32 | import stat |
31 | import logging | ||
32 | import bb | 33 | import bb |
33 | import bb.utils | 34 | import bb.utils |
34 | import bb.siggen | 35 | import bb.siggen |
@@ -122,12 +123,12 @@ def resolve_file(fn, d): | |||
122 | for af in attempts: | 123 | for af in attempts: |
123 | mark_dependency(d, af) | 124 | mark_dependency(d, af) |
124 | if not newfn: | 125 | if not newfn: |
125 | raise IOError("file %s not found in %s" % (fn, bbpath)) | 126 | raise IOError(errno.ENOENT, "file %s not found in %s" % (fn, bbpath)) |
126 | fn = newfn | 127 | fn = newfn |
127 | 128 | ||
128 | mark_dependency(d, fn) | 129 | mark_dependency(d, fn) |
129 | if not os.path.isfile(fn): | 130 | if not os.path.isfile(fn): |
130 | raise IOError("file %s not found" % fn) | 131 | raise IOError(errno.ENOENT, "file %s not found" % fn) |
131 | 132 | ||
132 | return fn | 133 | return fn |
133 | 134 | ||