Bug 9901

Summary: Missing package during installation leaves status file in bad state
Product: [Yocto Project Subprojects] opkg Reporter: Alejandro del Castillo <alejandro.delcastillo>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: paul.spangler
Version: 0.3.2   
Target Milestone: 0.3.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
initial test none

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.