<?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>9435</bug_id>
          
          <creation_ts>2016-04-11 23:17:10 +0000</creation_ts>
          <short_desc>Toaster throws an exception for images that have files on the / level</short_desc>
          <delta_ts>2023-12-14 04:19:18 +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>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>   </status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Toaster default assignee">toaster</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>david.reyna</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jose.perez.carranza</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>61059</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-04-11 23:17:10 +0000</bug_when>
    <thetext>Distributions like poky-tiny have files (init) on the top level of the target directory structure.  In this case, the construction of the parent directory results in &apos;&apos; which later throws an exception.
Sample Exception:
ERROR: Target_File matching query does not exist.
Traceback (most recent call last):
  File &quot;/big/src/myBugs/poky/bitbake/lib/bb/ui/toasterui.py&quot;, line 410, in main
    buildinfohelper.store_target_package_data(event)
  File &quot;/big/src/myBugs/poky/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 1247, in store_target_package_data
    self.orm_wrapper.save_target_file_information(self.internal_state[&apos;build&apos;], target, filedata)
  File &quot;/big/src/myBugs/poky/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 528, in save_target_file_information
    parent_obj = self._cached_get(Target_File, target = target_obj, path = parent_path, inodetype = Target_File.ITYPE_DIRECTORY)
  File &quot;/big/src/myBugs/poky/bitbake/lib/bb/ui/buildinfohelper.py&quot;, line 120, in _cached_get
    vars(self)[dictname][key] = clazz.objects.get(**kwargs)
  File &quot;/big/src/myBugs/RUN/t-Django-1.8/local/lib/python2.7/site-packages/django/db/models/manager.py&quot;, line 127, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File &quot;/big/src/myBugs/RUN/t-Django-1.8/local/lib/python2.7/site-packages/django/db/models/query.py&quot;, line 334, in get
    self.model._meta.object_name
DoesNotExist: Target_File matching query does not exist.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61625</commentid>
    <comment_count>1</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-04-25 14:53:58 +0000</bug_when>
    <thetext>I am not sure if Brian Avery will be able to do much Toaster work, so setting this one to the default assignee for the time being. Brian: feel free to take it back if you really want it!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61626</commentid>
    <comment_count>2</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-04-25 14:54:43 +0000</bug_when>
    <thetext>Also, if this means Toaster does not build with DISTRO set to poky-tiny, this might not be a &quot;low&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>