<?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>12204</bug_id>
          
          <creation_ts>2017-10-06 20:55:53 +0000</creation_ts>
          <short_desc>Some recipe events do not include packages</short_desc>
          <delta_ts>2018-04-02 22:50:39 +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>Toaster</product>
          <component>toaster</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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.4.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Reyna">david.reyna</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</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>77445</commentid>
    <comment_count>0</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2017-10-06 20:55:53 +0000</bug_when>
    <thetext>Most &quot;SinglePackageInfo&quot; events include package data, including the keys: 

  &apos;FILES_INFO&apos;, &apos;LICENSE&apos;, &apos;PKGR&apos;, &apos;ALLOW_EMPTY&apos;, &apos;PKG&apos;, &apos;PKGSIZE&apos;, &apos;RDEPENDS&apos;, &apos;PKGV&apos;, &apos;SECTION&apos;, &apos;FILES&apos;, &apos;OPKGN&apos;, &apos;DESCRIPTION&apos;, &apos;PR&apos;, &apos;PN&apos;, &apos;PV&apos;, &apos;SUMMARY&apos;

However, some events do not, for example:

  package_info:{&apos;OPKGN&apos;: &apos;lib32-update-rc.d-staticdev&apos;, &apos;PKG&apos;: &apos;update-rc.d-staticdev&apos;}
  package_info:{&apos;OPKGN&apos;: &apos;lib64-os-release&apos;, &apos;PKG&apos;: &apos;os-release&apos;}

These minimal events cause in exceptions in the existing Toaster code, and need to be handled:

  ERROR: &apos;PN&apos;
  Traceback (most recent call last):
    File &quot;/opt/dreyna/foo/bitbake/lib/bb/ui/toasterui.py&quot;, line 410, in main
      buildinfohelper.store_build_package_information(event)
    File &quot;/opt/dreyna/foo/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 1564, in store_build_package_information
      built_package=True)
    File &quot;/opt/dreyna/foo/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 729, in save_build_package_information
    built_recipe = recipes[package_info[&apos;PN&apos;]]
  KeyError: &apos;PN&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80070</commentid>
    <comment_count>1</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2018-04-02 22:50:39 +0000</bug_when>
    <thetext>(Bitbake rev: 567f072ff260614cde3da220a40a95d5a8b9ab92)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>