<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9711</bug_id>
          
          <creation_ts>2016-06-06 11:39:53 +0000</creation_ts>
          <short_desc>oe-pkgdata-util crashes if no arguments passed</short_desc>
          <delta_ts>2016-06-17 16:48:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>2.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62651</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-06 11:39:53 +0000</bug_when>
    <thetext>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 &quot;/home/ross/Yocto/poky/scripts/oe-pkgdata-util&quot;, line 525, in &lt;module&gt;
    main()
  File &quot;/home/ross/Yocto/poky/scripts/oe-pkgdata-util&quot;, line 519, in main
    ret = args.func(args)
AttributeError: &apos;Namespace&apos; object has no attribute &apos;func&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62699</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-06-07 12:01:05 +0000</bug_when>
    <thetext>Fix has been sent for review: http://lists.openembedded.org/pipermail/openembedded-core/2016-June/122567.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62893</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2016-06-10 08:05:42 +0000</bug_when>
    <thetext>The fix has been merged to master: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=db7ec6c1ab8c3c02a82a4aa6ce05b7fa1b0f3c0c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63114</commentid>
    <comment_count>3</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-06-17 16:48:52 +0000</bug_when>
    <thetext>This is working as expected now 

Verified on:  commit 7b9e1f5ad8a427356f2ec516b1718138a7d3c64e

***********************************************************************
/poky$ oe-pkgdata-util
oe-pkgdata-util: error: the following arguments are required: &lt;subcommand&gt;
usage: oe-pkgdata-util [-h] [-d] [-p PKGDATA_DIR] &lt;subcommand&gt; ...

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 &lt;subcommand&gt; --help to get help on a specific command

***************************************************************************</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>