There's a '-p' option. It should error out only when it cannot determine
the pkdata dir.
Regards,
Chen Qi
On 02/01/2021 11:43 AM, Dorinda wrote:
[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')
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#147507):
https://lists.openembedded.org/g/openembedded-core/message/147507
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]]
-=-=-=-=-=-=-=-=-=-=-=-