<?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>8931</bug_id>
          
          <creation_ts>2016-01-14 23:20:46 +0000</creation_ts>
          <short_desc>replaces field does not support version constrains</short_desc>
          <delta_ts>2016-06-02 18:53:30 +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>0.3.2</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>57843</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-01-14 23:20:46 +0000</bug_when>
    <thetext>The pkg-&gt;replaces array contains a list of the abstract packages replaced by the pkg. Abstract packages don&apos;t contain versions as they are an abstraction of all versions of a package. This effectively means that the Replaces field can only have package names, but not version constrains (eg. Replaces=&quot;a (&lt;&lt; 2.0)&quot;)

pkg-replaces should be a compound_depend_t*, and should work the same may pkg-conflicts (which does support version constrains).

This is failing the test issue50.py on both backends (internal solver and libsolv).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57872</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-01-15 16:16:18 +0000</bug_when>
    <thetext>The use case where version strings are needed for Replaces

- Package a (1.0) contains /foo and /bar
- Package a (2.0) contains /bar
- Package b (2.0) contains /foo. 
   * It needs to define Replaces a (&lt;&lt; 2.0).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62611</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-06-02 18:53:30 +0000</bug_when>
    <thetext>Fix on commit 6bf5df7b7e29f9deef4b6a37eb8a6cdcb96dc452</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>