Bug 9901 - Missing package during installation leaves status file in bad state
Summary: Missing package during installation leaves status file in bad state
Status: RESOLVED FIXED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: 0.3.2
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 0.3.4
Assignee: Alejandro del Castillo
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-07-08 19:01 UTC by Alejandro del Castillo
Modified: 2016-10-07 18:49 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
initial test (726 bytes, text/x-python)
2016-07-08 19:02 UTC, Alejandro del Castillo
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro del Castillo 2016-07-08 19:01:18 UTC
If package A, which depends on B is attempted to be installed from a repo that doesn'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
Comment 1 Alejandro del Castillo 2016-07-08 19:02:11 UTC
Created attachment 3278 [details]
initial test
Comment 2 Alejandro del Castillo 2016-10-07 18:49:40 UTC
The fix for 10358 also fixes this bug report.