Bug 8913

Summary: [internalsolv] Upgrade of package with a replacee provided by the package itself fails
Product: [Yocto Project Subprojects] opkg Reporter: Alejandro del Castillo <alejandro.delcastillo>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Undecided    
Version: 0.3.1   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alejandro del Castillo 2016-01-12 21:58:05 UTC
If package A replaces virtual package B, and B is provided by A, then package A upgrades will fail. 

The upgrade will fail since the old version of package A is removed twice: first (incorrectly) on pkg_remove_installed_replacees, then during the upgrade operation. Package A should not be added to the replacees list.

Problem is present in both solvers (internal and libsolv).
Comment 1 Alejandro del Castillo 2016-01-12 23:02:42 UTC
Actually this failure is only present on the internal solver. The libsolv backend does it's own resolution Provides/Replaces/Conflicts.
Comment 2 Alejandro del Castillo 2016-01-19 17:24:28 UTC
fixed by 7885da3974de2df1baba220200d55920fb530e25