libxbps: fix issue found by the recent glvnd switch.

See the new test case for details, but this simulates
the recent glvnd switch, with mesa, nvidia and libglvnd.

Thanks @st3r4g for the fix! this indeed fixes the new test case.

Close #186
This commit is contained in:
Juan RP
2019-12-27 20:19:25 +01:00
parent 34a1ab51d0
commit 73e0668840
2 changed files with 73 additions and 0 deletions

View File

@@ -90,6 +90,7 @@ pkg_conflicts_trans(struct xbps_handle *xhp, xbps_array_t array,
"transaction", &tract);
if (!strcmp(tract, "install") ||
!strcmp(tract, "update") ||
!strcmp(tract, "remove") ||
!strcmp(tract, "hold")) {
free(pkgname);
continue;