diff options
Diffstat (limited to 'bitbake/bin/bitbake-getvar')
| -rwxr-xr-x | bitbake/bin/bitbake-getvar | 6 |
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__) | |||
| 16 | topdir = os.path.dirname(bindir) | 16 | topdir = os.path.dirname(bindir) |
| 17 | sys.path[0:0] = [os.path.join(topdir, 'lib')] | 17 | sys.path[0:0] = [os.path.join(topdir, 'lib')] |
| 18 | 18 | ||
| 19 | import bb.providers | ||
| 19 | import bb.tinfoil | 20 | import bb.tinfoil |
| 20 | 21 | ||
| 21 | if __name__ == "__main__": | 22 | if __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 |
