<?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>13413</bug_id>
          
          <creation_ts>2019-06-19 19:26:03 +0000</creation_ts>
          <short_desc>opkg incorrectly wipes current feeds when &apos;update&apos; fails</short_desc>
          <delta_ts>2019-09-11 16:10:50 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</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="David C">decthrowaway</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84255</commentid>
    <comment_count>0</comment_count>
    <who name="David C">decthrowaway</who>
    <bug_when>2019-06-19 19:26:03 +0000</bug_when>
    <thetext>opkg incorrectly wipes current feeds when &apos;update&apos; fails. On failure, opkg should retain the old feed information rather than erasing it.

I did an opkg update that failed (intentionally, we had set the system date back).

admin@target:~# ls /var/lib/opkg/lists/
admin@target:~#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84930</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2019-09-11 16:10:50 +0000</bug_when>
    <thetext>If a system has an expired key, the process to get it back to work should be to:

- Update key via opkg-key
- Run opkg update

This is consistent with how other package managers behave (apt).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>