Bug 13413 - opkg incorrectly wipes current feeds when 'update' fails
Summary: opkg incorrectly wipes current feeds when 'update' fails
Status: RESOLVED NOTABUG
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Alejandro del Castillo
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-06-19 19:26 UTC by David C
Modified: 2019-09-11 16:10 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).