libxbps: check in virtual pkgs when matching replaced pkgs.
This commit is contained in:
parent
d3e1c0dcf2
commit
e37a9efb74
@ -58,8 +58,15 @@ xbps_repository_pkg_replaces(prop_dictionary_t transd,
|
|||||||
* to be replaced.
|
* to be replaced.
|
||||||
*/
|
*/
|
||||||
instd = xbps_find_pkg_dict_installed(pattern, true);
|
instd = xbps_find_pkg_dict_installed(pattern, true);
|
||||||
if (instd == NULL)
|
if (instd == NULL) {
|
||||||
continue;
|
/*
|
||||||
|
* No package installed has been matched, try looking
|
||||||
|
* for a virtual package.
|
||||||
|
*/
|
||||||
|
instd = xbps_find_virtualpkg_dict_installed(pattern, true);
|
||||||
|
if (instd == NULL)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
* Check that we are not replacing the same package, due
|
* Check that we are not replacing the same package, due
|
||||||
* to virtual packages.
|
* to virtual packages.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user