| Summary: | oe-pkgdata-util crashes if no arguments passed | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Ross Burton <ross.burton> |
| Component: | Scripts and Tools | Assignee: | Ed Bartosh <eduard.bartosh> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | jose.perez.carranza, ross.burton |
| Version: | 2.1 | ||
| Target Milestone: | 2.2 M1 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
Fix has been sent for review: http://lists.openembedded.org/pipermail/openembedded-core/2016-June/122567.html The fix has been merged to master: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=db7ec6c1ab8c3c02a82a4aa6ce05b7fa1b0f3c0c This is working as expected now
Verified on: commit 7b9e1f5ad8a427356f2ec516b1718138a7d3c64e
***********************************************************************
/poky$ oe-pkgdata-util
oe-pkgdata-util: error: the following arguments are required: <subcommand>
usage: oe-pkgdata-util [-h] [-d] [-p PKGDATA_DIR] <subcommand> ...
OpenEmbedded pkgdata tool - queries the pkgdata files written out during
do_package
options:
-h, --help show this help message and exit
-d, --debug Enable debug output
-p PKGDATA_DIR, --pkgdata-dir PKGDATA_DIR
Path to pkgdata directory (determined automatically if
not specified)
subcommands:
lookup-pkg Translate between recipe-space package names and
runtime package names
list-pkgs List packages
list-pkg-files List files within a package
lookup-recipe Find recipe producing one or more packages
package-info Shows version, recipe and size information for one or
more packages
find-path Find package providing a target path
read-value Read any pkgdata value for one or more packages
glob Expand package name glob expression
Use oe-pkgdata-util <subcommand> --help to get help on a specific command
***************************************************************************
|
If no arguments are passed oe-pkgdata-util throws an exception. It should show --help in this case: $ oe-pkgdata-util Traceback (most recent call last): File "/home/ross/Yocto/poky/scripts/oe-pkgdata-util", line 525, in <module> main() File "/home/ross/Yocto/poky/scripts/oe-pkgdata-util", line 519, in main ret = args.func(args) AttributeError: 'Namespace' object has no attribute 'func'