Fix #62 (Dup replaced pkgs in transaction)

This commit is contained in:
Juan RP
2014-10-17 09:52:32 +02:00
parent 1c20086896
commit d7633e88e0
3 changed files with 44 additions and 2 deletions

View File

@ -103,14 +103,13 @@ xbps_transaction_package_replace(struct xbps_handle *xhp)
*/
xbps_dictionary_get_bool(instd, "automatic-install", &instd_auto);
if ((reppkgd = xbps_find_pkg_in_array(unsorted, curpkgname, NULL))) {
xbps_dictionary_set_bool(instd,
"remove-and-update", true);
xbps_dictionary_set_bool(reppkgd,
"automatic-install", instd_auto);
xbps_dictionary_set_bool(reppkgd,
"skip-obsoletes", true);
xbps_array_replace_dict_by_name(unsorted,
reppkgd, curpkgname);
continue;
}
/*
* If new package is providing a virtual package to the