<?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>8913</bug_id>
          
          <creation_ts>2016-01-12 21:58:05 +0000</creation_ts>
          <short_desc>[internalsolv] Upgrade of package with a replacee provided by the package itself fails</short_desc>
          <delta_ts>2016-01-19 17:24:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>0.3.1</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>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alejandro del Castillo">alejandro.delcastillo</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <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>57773</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-01-12 21:58:05 +0000</bug_when>
    <thetext>If package A replaces virtual package B, and B is provided by A, then package A upgrades will fail. 

The upgrade will fail since the old version of package A is removed twice: first (incorrectly) on pkg_remove_installed_replacees, then during the upgrade operation. Package A should not be added to the replacees list.

Problem is present in both solvers (internal and libsolv).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57774</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-01-12 23:02:42 +0000</bug_when>
    <thetext>Actually this failure is only present on the internal solver. The libsolv backend does it&apos;s own resolution Provides/Replaces/Conflicts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57958</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-01-19 17:24:28 +0000</bug_when>
    <thetext>fixed by 7885da3974de2df1baba220200d55920fb530e25</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>