<?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>12474</bug_id>
          
          <creation_ts>2018-01-11 17:22:12 +0000</creation_ts>
          <short_desc>If `opkg install file` collides with repo pkg with same name/version, the repo metadata is used</short_desc>
          <delta_ts>2021-07-08 17:00:52 +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.4.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>ACCEPTED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>next-patch</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Tollerton">rich.tollerton</reporter>
          <assigned_to name="Alex Stewart">alex.stewart</assigned_to>
          <cc>alex.stewart</cc>
    
    <cc>rich.tollerton</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>79046</commentid>
    <comment_count>0</comment_count>
      <attachid>4171</attachid>
    <who name="Richard Tollerton">rich.tollerton</who>
    <bug_when>2018-01-11 17:22:12 +0000</bug_when>
    <thetext>Created attachment 4171
opkg test: when ipk to install collides with ipk in repo, use metadata from file

Suppose you are fixing a bug in a package, have rebuilt the package, and are in the process of manually testing the fix with `opkg install file`. And you have _not_ bumped the package version. However, the broken package is in a repo indexed by opkg.

What I expect to see happen is that the metadata loaded for the ipk is, you know, loaded from the ipk. At a minimum, I know for a fact that pacman does this. However, the observed behavior is that the metadata from the index is loaded instead.

See attached for proposed test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82573</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2018-12-21 00:00:19 +0000</bug_when>
    <thetext>Re-targeting before release</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4171</attachid>
            <date>2018-01-11 17:22:12 +0000</date>
            <delta_ts>2018-01-11 17:22:12 +0000</delta_ts>
            <desc>opkg test: when ipk to install collides with ipk in repo, use metadata from file</desc>
            <filename>40_upgrade_deps_override.py</filename>
            <type>text/x-python</type>
            <size>593</size>
            <attacher name="Richard Tollerton">rich.tollerton</attacher>
            
              <data encoding="base64">IyEgL3Vzci9iaW4vZW52IHB5dGhvbjMKIwojIENyZWF0ZSBhIHBhY2thZ2UgaW4gYSByZXBvIHdp
dGggYSBzcHVyaW91cyBkZXBlbmRlbmN5LiBEb3dubG9hZCB0aGUgaW5kZXggZm9yCiMgdGhlIHJl
cG8uIFRoZW4gY3JlYXRlIGEgZGlmZmVyZW50IGJ1aWxkIG9mIHRoYXQgcGFja2FnZSwgd2l0aCB0
aGUgc2FtZSBuYW1lCiMgYW5kIHZlcnNpb24sIHdpdGggdGhlIHNwdXJpb3VzIGRlcGVuZGVuY3kg
cmVtb3ZlZC4KCmltcG9ydCBvcwppbXBvcnQgb3BrLCBjZmcsIG9wa2djbApvcGsucmVncmVzc19p
bml0KCkKCm8gPSBvcGsuT3BrR3JvdXAoKQpvLmFkZChQYWNrYWdlPSI0MGEiLCBWZXJzaW9uPSIx
LjAiLCBEZXBlbmRzPSI0MGIiKSAjIGRvZXNuJ3QgZXhpc3QhCm8ud3JpdGVfb3BrKCkKby53cml0
ZV9saXN0KCkKCm9wa2djbC51cGRhdGUoKQoKcGtnID0gb3BrLk9wayhQYWNrYWdlPSI0MGEiLCBW
ZXJzaW9uPSIxLjAiKQpwa2cud3JpdGUoKQpvcGtnY2wuaW5zdGFsbCgiNDBhXzEuMF9hbGwub3Br
IikKCmlmIG5vdCBvcGtnY2wuaXNfaW5zdGFsbGVkKCI0MGEiLCAiMS4wIik6CglvcGsuZmFpbCgi
NDBhIHdhc24ndCBpbnN0YWxsZWQiKQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>