diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-06-07 14:59:13 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-07 21:36:09 +0100 |
commit | 207dba5b6eb04c1ae2081bac06724b3b6a198cb3 (patch) | |
tree | a56053f9daf852892ddd758cee83a7072fbd3671 /meta/recipes-core/packagegroups | |
parent | b6e0a762f8a17ee323cef02934f9a624faf706ed (diff) | |
download | openembedded-core-207dba5b6eb04c1ae2081bac06724b3b6a198cb3.tar.gz openembedded-core-207dba5b6eb04c1ae2081bac06724b3b6a198cb3.tar.bz2 openembedded-core-207dba5b6eb04c1ae2081bac06724b3b6a198cb3.zip |
oe-pkgdata-util: fix AttributeError
The default arparse behaviour in Python 2 and early versions of Python 3
was to print usage message if no subcommands provided by user.
In Python >= 3.2.3 subparser has to have attribute 'required' set to
True to behave similar way.
By default subparser.required attribute is set to False, usage message is
not printed and code continues to be executed.
oe-pkgdata-util code raises AttributeError exception in
this case:
AttributeError: 'Namespace' object has no attribute 'func'
Fixed this by setting subparser.required to True.
[YOCTO #9711]
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/packagegroups')
0 files changed, 0 insertions, 0 deletions