Ignore package conflicts against themselves, due to virtual packages.
This commit is contained in:
3
NEWS
3
NEWS
@@ -1,5 +1,8 @@
|
|||||||
xbps-0.21 (???):
|
xbps-0.21 (???):
|
||||||
|
|
||||||
|
* libxbps: ignore packages conflicting themselves, which can happen with
|
||||||
|
virtual packages.
|
||||||
|
|
||||||
* xbps-query(8): fix issue #3 from github
|
* xbps-query(8): fix issue #3 from github
|
||||||
"xbps-query -o only works for installed packages".
|
"xbps-query -o only works for installed packages".
|
||||||
|
|
||||||
|
@@ -63,6 +63,9 @@ xbps_pkg_find_conflicts(struct xbps_handle *xhp,
|
|||||||
(pkgd = xbps_pkgdb_get_virtualpkg(xhp, cfpkg))) {
|
(pkgd = xbps_pkgdb_get_virtualpkg(xhp, cfpkg))) {
|
||||||
prop_dictionary_get_cstring_nocopy(pkgd,
|
prop_dictionary_get_cstring_nocopy(pkgd,
|
||||||
"pkgver", &pkgver);
|
"pkgver", &pkgver);
|
||||||
|
if (strcmp(pkgver, repopkgver))
|
||||||
|
continue;
|
||||||
|
|
||||||
xbps_dbg_printf(xhp, "found conflicting installed "
|
xbps_dbg_printf(xhp, "found conflicting installed "
|
||||||
"pkg %s with pkg in transaction %s\n", pkgver,
|
"pkg %s with pkg in transaction %s\n", pkgver,
|
||||||
repopkgver);
|
repopkgver);
|
||||||
@@ -79,6 +82,9 @@ xbps_pkg_find_conflicts(struct xbps_handle *xhp,
|
|||||||
(pkgd = xbps_find_virtualpkg_in_array(xhp, unsorted, cfpkg))) {
|
(pkgd = xbps_find_virtualpkg_in_array(xhp, unsorted, cfpkg))) {
|
||||||
prop_dictionary_get_cstring_nocopy(pkgd,
|
prop_dictionary_get_cstring_nocopy(pkgd,
|
||||||
"pkgver", &pkgver);
|
"pkgver", &pkgver);
|
||||||
|
if (strcmp(pkgver, repopkgver))
|
||||||
|
continue;
|
||||||
|
|
||||||
xbps_dbg_printf(xhp, "found conflicting pkgs in "
|
xbps_dbg_printf(xhp, "found conflicting pkgs in "
|
||||||
"transaction %s <-> %s\n", pkgver, repopkgver);
|
"transaction %s <-> %s\n", pkgver, repopkgver);
|
||||||
buf = xbps_xasprintf("%s conflicts with "
|
buf = xbps_xasprintf("%s conflicts with "
|
||||||
|
Reference in New Issue
Block a user