<?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>5225</bug_id>
          
          <creation_ts>2013-09-18 09:50:15 +0000</creation_ts>
          <short_desc>[webhob-poky/master] in package_dependencies API, depends_on_id sometimes returns package version</short_desc>
          <delta_ts>2013-12-23 16:27:49 +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>1.5</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>oecore, toasterui</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6 M1</target_milestone>
          <dependson>5565</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>jessica.zhang</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>36851</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2013-09-18 09:50:15 +0000</bug_when>
    <thetext>Most of the times this API call returns a package name:

{\&quot;pk\&quot;: 16770, \&quot;model\&quot;: \&quot;orm.build_package_dependency\&quot;, \&quot;fields\&quot;: {\&quot;depends_on\&quot;: \&quot;packagegroup-base-nfs-dev\&quot;, \&quot;dep_type\&quot;: 2, \&quot;package\&quot;: 8359}}

However, there are instances where it is returning the package version. A couple of examples below:

{\&quot;pk\&quot;: 16781, \&quot;model\&quot;: \&quot;orm.build_package_dependency\&quot;, \&quot;fields\&quot;: {\&quot;depends_on\&quot;: \&quot;0.1+git0+afd4e228c6-r15)\&quot;, \&quot;dep_type\&quot;: 0, \&quot;package\&quot;: 8409}}

{\&quot;pk\&quot;: 186, \&quot;model\&quot;: \&quot;orm.build_package_dependency\&quot;, \&quot;fields\&quot;: {\&quot;depends_on\&quot;: \&quot;1.0.9)\&quot;, \&quot;dep_type\&quot;: 0, \&quot;package\&quot;: 133}},</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38934</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2013-11-20 13:49:22 +0000</bug_when>
    <thetext>This is root-caused by an issue in the REST API implementation, and is not a data collection bug.

This should be solved by the bugs on which depends - 
changing the REST API and the package tables will fix this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39187</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2013-12-02 14:07:13 +0000</bug_when>
    <thetext>In review poky-contrib: toaster/master. 
Package dependency mechanism is now rewritten, this bug is no longer applicable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39569</commentid>
    <comment_count>3</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2013-12-23 16:27:22 +0000</bug_when>
    <thetext>merged to master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39570</commentid>
    <comment_count>4</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2013-12-23 16:27:49 +0000</bug_when>
    <thetext>verified in master:3ada51f7aa26fc95d5f9ba4498c0ea54acc6e42e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>