conflicts: fix previous again...

This commit is contained in:
Juan RP 2015-11-12 12:54:53 +01:00
parent 3a5f1f8ad5
commit 6a59b65e28

View File

@ -90,7 +90,9 @@ pkg_conflicts_trans(struct xbps_handle *xhp, xbps_array_t array,
if ((tpkgd = xbps_find_pkg_in_array(array, pkgname, NULL))) { if ((tpkgd = xbps_find_pkg_in_array(array, pkgname, NULL))) {
xbps_dictionary_get_cstring_nocopy(tpkgd, xbps_dictionary_get_cstring_nocopy(tpkgd,
"transaction", &tract); "transaction", &tract);
if (!strcmp(tract, "install") || !strcmp(tract, "update")) { if (!strcmp(tract, "install") ||
!strcmp(tract, "update") ||
!strcmp(tract, "hold")) {
free(pkgname); free(pkgname);
continue; continue;
} }
@ -126,7 +128,7 @@ pkg_conflicts_trans(struct xbps_handle *xhp, xbps_array_t array,
if (xbps_dictionary_get_cstring_nocopy(pkgd, if (xbps_dictionary_get_cstring_nocopy(pkgd,
"transaction", &tract)) { "transaction", &tract)) {
if (!strcmp(tract, "remove") || !strcmp(tract, "hold")) if (!strcmp(tract, "remove") || !strcmp(tract, "hold"))
return; continue;
} }
xbps_dbg_printf(xhp, "found conflicting pkgs in " xbps_dbg_printf(xhp, "found conflicting pkgs in "
"transaction %s <-> %s (matched by %s)\n", "transaction %s <-> %s (matched by %s)\n",