Bug 13413

Summary: opkg incorrectly wipes current feeds when 'update' fails
Product: [Yocto Project Subprojects] opkg Reporter: David C <decthrowaway>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Undecided    
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description David C 2019-06-19 19:26:03 UTC
opkg incorrectly wipes current feeds when 'update' 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:~#
Comment 1 Alejandro del Castillo 2019-09-11 16:10:50 UTC
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).