<?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>11033</bug_id>
          
          <creation_ts>2017-02-08 21:32:23 +0000</creation_ts>
          <short_desc>opkg does not treat symlink/directory conflicts as an error</short_desc>
          <delta_ts>2017-02-24 21:02:25 +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.4</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Hansen">michael.j.hansen</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>70563</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Hansen">michael.j.hansen</who>
    <bug_when>2017-02-08 21:32:23 +0000</bug_when>
    <thetext>Given two packages:
- a, which provides a symlink at a given path (e.g. /ro/config -&gt; ../rw/config)
- b, which installs files into the same path (e.g. /ro/config/b.conf)

opkg will allow both packages to be installed, but will not produce a &quot;reasonable&quot; result no matter which order they&apos;re installed in.

If a is installed before b:
- Opkg will print a warning that it can&apos;t create file /ro/config/b.conf, since /rw/config doesn&apos;t exist.  It will still proceed and return successful exit status nonetheless.

If b is installed before a:
- Opkg will silently ignore the creation of the symlink.


Expected behavior:
- Opkg should detect the conflict and disallow the two packages from being installed at the same time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70937</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2017-02-24 21:02:25 +0000</bug_when>
    <thetext>Fixed on f9ca21f1892d64a70c2756d28e29ef3f60a324eb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>