Fix package conflicts detection (regression from b9136c61c9
).
This commit is contained in:
@ -50,10 +50,12 @@ xbps_pkg_find_conflicts(struct xbps_handle *xhp,
|
||||
trans_cflicts = prop_dictionary_get(xhp->transd, "conflicts");
|
||||
prop_dictionary_get_cstring_nocopy(pkg_repod, "pkgver", &repopkgver);
|
||||
|
||||
iter = prop_array_iterator(trans_cflicts);
|
||||
iter = prop_array_iterator(pkg_cflicts);
|
||||
assert(iter);
|
||||
|
||||
while ((obj = prop_object_iterator_next(iter))) {
|
||||
cfpkg = prop_string_cstring_nocopy(obj);
|
||||
|
||||
/*
|
||||
* Check if current pkg conflicts with an installed package.
|
||||
*/
|
||||
@ -61,6 +63,9 @@ xbps_pkg_find_conflicts(struct xbps_handle *xhp,
|
||||
(pkgd = xbps_pkgdb_get_virtualpkg(xhp, cfpkg))) {
|
||||
prop_dictionary_get_cstring_nocopy(pkgd,
|
||||
"pkgver", &pkgver);
|
||||
xbps_dbg_printf(xhp, "found conflicting installed "
|
||||
"pkg %s with pkg in transaction %s\n", pkgver,
|
||||
repopkgver);
|
||||
buf = xbps_xasprintf("%s conflicts with "
|
||||
"installed pkg %s", repopkgver, pkgver);
|
||||
prop_array_add_cstring(trans_cflicts, buf);
|
||||
@ -74,6 +79,8 @@ xbps_pkg_find_conflicts(struct xbps_handle *xhp,
|
||||
(pkgd = xbps_find_virtualpkg_in_array(xhp, unsorted, cfpkg))) {
|
||||
prop_dictionary_get_cstring_nocopy(pkgd,
|
||||
"pkgver", &pkgver);
|
||||
xbps_dbg_printf(xhp, "found conflicting pkgs in "
|
||||
"transaction %s <-> %s\n", pkgver, repopkgver);
|
||||
buf = xbps_xasprintf("%s conflicts with "
|
||||
"%s in transaction", repopkgver, pkgver);
|
||||
prop_array_add_cstring(trans_cflicts, buf);
|
||||
|
Reference in New Issue
Block a user