<?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>9901</bug_id>
          
          <creation_ts>2016-07-08 19:01:18 +0000</creation_ts>
          <short_desc>Missing package during installation leaves status file in bad state</short_desc>
          <delta_ts>2016-10-07 18:49:40 +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.2</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>0.3.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alejandro del Castillo">alejandro.delcastillo</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          <cc>paul.spangler</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>63767</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-07-08 19:01:18 +0000</bug_when>
    <thetext>If package A, which depends on B is attempted to be installed from a repo that doesn&apos;t have B, the installation will fail (but A will be installed).

If the repo is updated and a new version of B is present, opkg will see both the version that it tried to download when A was attempted to be installed, as well as the new one. Installing B will fail since the old version is not present.

Deleting the old version from the /var/lib/opkg/status file workaround the issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63768</commentid>
    <comment_count>1</comment_count>
      <attachid>3278</attachid>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-07-08 19:02:11 +0000</bug_when>
    <thetext>Created attachment 3278
initial test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67061</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-10-07 18:49:40 +0000</bug_when>
    <thetext>The fix for 10358 also fixes this bug report.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>3278</attachid>
            <date>2016-07-08 19:02:11 +0000</date>
            <delta_ts>2016-07-08 19:02:11 +0000</delta_ts>
            <desc>initial test</desc>
            <filename>issue9901.py</filename>
            <type>text/x-python</type>
            <size>726</size>
            <attacher name="Alejandro del Castillo">alejandro.delcastillo</attacher>
            
              <data encoding="base64">IyEgL3Vzci9iaW4vZW52IHB5dGhvbgojCgppbXBvcnQgb3MKaW1wb3J0IG9waywgY2ZnLCBvcGtn
Y2wKCm9way5yZWdyZXNzX2luaXQoKQoKbyA9IG9way5PcGtHcm91cCgpCgpvLmFkZChQYWNrYWdl
PSJiIiwgVmVyc2lvbj0iMS4wLTEiKQpvLmFkZChQYWNrYWdlPSJhIiwgVmVyc2lvbj0iMS4wIiwg
RGVwZW5kcz0iYiIpCgpvLndyaXRlX29waygpCm8ud3JpdGVfbGlzdCgpCgpvcGtnY2wudXBkYXRl
KCkKCiMgUmVtb3ZlIHBrZywgdGhpcyB3aWxsIGNyZWF0ZSBhbiBlbnRyeSBvbiAvdmFyL2xpYi9v
cGtnL3N0YXR1cwojIGZvciBiICgxLjAtMSksIHdoZW4gYSBpcyBpbnN0YWxsZWQgKGluc3RhbGxh
dGlvbiB3aWxsIGZhaWwpCm9zLnJlbW92ZSgnL3RtcC9vcGsvYl8xLjAtMV9hbGwub3BrJykKCiMg
SW5zdGFsbGF0aW9uIHdpbGwgZmFpbCwgYnV0IGEgd2lsbCBiZSBpbnN0YWxsZWQKb3BrZ2NsLmlu
c3RhbGwoImEiKQoKIyBTaW11bGF0ZSBhIGZlZWQgY2hhbmdlIChuZXcgZmVlZCBidWlsZCkKbyA9
IG9way5PcGtHcm91cCgpCm8uYWRkKFBhY2thZ2U9ImIiLCBWZXJzaW9uPSIxLjAtMiIpCm8uYWRk
KFBhY2thZ2U9ImMiKQoKby53cml0ZV9vcGsoKQpvLndyaXRlX2xpc3QoKQoKb3BrZ2NsLnVwZGF0
ZSgpCgppZiBub3Qgb3BrZ2NsLmlzX2luc3RhbGxlZCgiYiIsICIxLjAtMiIpOgoJb3BrLmZhaWwo
IlBhY2thZ2UgJ2IgKD0xLjAuMiknIGZhaWxlZCB0byBpbnN0YWxsIikK
</data>

          </attachment>
      

    </bug>

</bugzilla>