summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake-getvar6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-getvar b/bitbake/bin/bitbake-getvar
index 20c0b696f7..1719824d95 100755
--- a/bitbake/bin/bitbake-getvar
+++ b/bitbake/bin/bitbake-getvar
@@ -16,6 +16,7 @@ bindir = os.path.dirname(__file__)
16topdir = os.path.dirname(bindir) 16topdir = os.path.dirname(bindir)
17sys.path[0:0] = [os.path.join(topdir, 'lib')] 17sys.path[0:0] = [os.path.join(topdir, 'lib')]
18 18
19import bb.providers
19import bb.tinfoil 20import bb.tinfoil
20 21
21if __name__ == "__main__": 22if __name__ == "__main__":
@@ -40,7 +41,10 @@ if __name__ == "__main__":
40 with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not quiet) as tinfoil: 41 with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not quiet) as tinfoil:
41 if args.recipe: 42 if args.recipe:
42 tinfoil.prepare(quiet=3 if quiet else 2) 43 tinfoil.prepare(quiet=3 if quiet else 2)
43 d = tinfoil.parse_recipe(args.recipe) 44 try:
45 d = tinfoil.parse_recipe(args.recipe)
46 except bb.providers.NoProvider as e:
47 sys.exit(str(e))
44 else: 48 else:
45 tinfoil.prepare(quiet=2, config_only=True) 49 tinfoil.prepare(quiet=2, config_only=True)
46 # Expand keys and run anonymous functions to get identical result to 50 # Expand keys and run anonymous functions to get identical result to