Fixed a new issue with vpkgs replacing the same vpkg they are providing.

Added a new testcase to verify its correctness.
This commit is contained in:
Juan RP
2014-07-01 15:35:55 +02:00
parent 510c84d3bb
commit 21f32a75c5
3 changed files with 50 additions and 6 deletions

View File

@ -316,7 +316,8 @@ xbps_transaction_sort(struct xbps_handle *xhp)
}
}
}
if (!vpkg_found && (pd = pkgdep_find(pkgver)) == NULL) {
pd = pkgdep_find(pkgver);
if ((!strcmp(tract, "remove") || (!pd && !vpkg_found))) {
/*
* If package not in list, just add to the tail.
*/