Alternatives framework (1/2) (WIP).

This commit is contained in:
Juan RP
2015-10-18 10:38:35 +02:00
parent c457b594aa
commit faeff38ca2
8 changed files with 642 additions and 4 deletions

View File

@ -350,6 +350,10 @@ xbps_transaction_commit(struct xbps_handle *xhp)
goto out;
}
}
/* flush changes to the alternatives framework */
if ((rv = xbps_alternatives_flush(xhp)) != 0)
goto out;
/* if there are no packages to install or update we are done */
if (!xbps_dictionary_get(xhp->transd, "total-update-pkgs") &&
!xbps_dictionary_get(xhp->transd, "total-install-pkgs"))