Tinfoil doesn't behave well if environment is not initialised, this check ensures a proper error log if environment is not initialzed.
[YOCTO #12096] Signed-off-by: Dorinda Bassey <[email protected]> --- scripts/oe-pkgdata-util | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/oe-pkgdata-util b/scripts/oe-pkgdata-util index 93220e3617..169908638d 100755 --- a/scripts/oe-pkgdata-util +++ b/scripts/oe-pkgdata-util @@ -513,6 +513,11 @@ def find_path(args): def main(): + + if not os.environ.get('BUILDDIR', ''): + logger.error("This script can only be run after initialising the build environment (e.g. by using oe-init-build-env)") + sys.exit(1) + parser = argparse_oe.ArgumentParser(description="OpenEmbedded pkgdata tool - queries the pkgdata files written out during do_package", epilog="Use %(prog)s <subcommand> --help to get help on a specific command") parser.add_argument('-d', '--debug', help='Enable debug output', action='store_true') -- 2.17.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#147503): https://lists.openembedded.org/g/openembedded-core/message/147503 Mute This Topic: https://lists.openembedded.org/mt/80276727/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
