diff options
Diffstat (limited to 'bitbake/lib/bb/parse/parse_py/BBHandler.py')
-rw-r--r-- | bitbake/lib/bb/parse/parse_py/BBHandler.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/parse/parse_py/BBHandler.py b/bitbake/lib/bb/parse/parse_py/BBHandler.py index 68415735fd..532a4e08f1 100644 --- a/bitbake/lib/bb/parse/parse_py/BBHandler.py +++ b/bitbake/lib/bb/parse/parse_py/BBHandler.py | |||
@@ -56,6 +56,9 @@ def inherit(files, fn, lineno, d): | |||
56 | if abs_fn: | 56 | if abs_fn: |
57 | file = abs_fn | 57 | file = abs_fn |
58 | 58 | ||
59 | if not os.path.exists(file): | ||
60 | raise ParseError("Could not inherit file %s" % (file), fn, lineno) | ||
61 | |||
59 | if not file in __inherit_cache: | 62 | if not file in __inherit_cache: |
60 | logger.debug("Inheriting %s (from %s:%d)" % (file, fn, lineno)) | 63 | logger.debug("Inheriting %s (from %s:%d)" % (file, fn, lineno)) |
61 | __inherit_cache.append( file ) | 64 | __inherit_cache.append( file ) |