A bugfix while sorting dependencies in a transaction (thanks dave).

This commit is contained in:
Juan RP 2012-03-30 01:39:13 +02:00
parent a5f4848d0b
commit 8e0612bb46
3 changed files with 6 additions and 2 deletions

4
NEWS
View File

@ -1,5 +1,9 @@
xbps-0.15 (???):
* When sorting required dependencies make sure that a pkg with
required version is taken into account, not just the first
one matching its pkgname.
* When resolving required dependencies also find the best pkg
available in repository pool. Thanks to dave for testing!

View File

@ -56,7 +56,7 @@
*/
#define XBPS_PKGINDEX_VERSION "1.4"
#define XBPS_API_VERSION "20120328"
#define XBPS_API_VERSION "20120330"
#define XBPS_VERSION "0.15"
/**

View File

@ -216,7 +216,7 @@ again:
xbps_dbg_printf(" Required dependency '%s': ", str);
pdn = pkgdep_find(pkgnamedep, NULL);
if ((pdn == NULL) &&
xbps_check_is_installed_pkg_by_name(pkgnamedep)) {
xbps_check_is_installed_pkg_by_pattern(str)) {
/*
* Package dependency is installed, just add to
* the list but just mark it as "installed", to avoid