unpack: use pkg dictionary from metadir to find obsoletes!

This commit is contained in:
Juan RP 2012-11-17 15:14:11 +01:00
parent cc99e887a2
commit fcdb6b0930
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@
*/
#define XBPS_PKGINDEX_VERSION "1.5"
#define XBPS_API_VERSION "20121116-1"
#define XBPS_API_VERSION "20121117"
#ifndef XBPS_VERSION
#define XBPS_VERSION "UNSET"

View File

@ -484,7 +484,7 @@ unpack_archive(struct xbps_handle *xhp,
* - Package upgrade.
* - Package with "softreplace" keyword.
*/
old_filesd = xbps_pkgdb_get_pkgd(xhp, pkgname, false);
old_filesd = xbps_metadir_get_pkgd(xhp, pkgname);
if (prop_object_type(old_filesd) == PROP_TYPE_DICTIONARY) {
obsoletes = xbps_find_pkg_obsoletes(xhp, old_filesd, filesd);
for (i = 0; i < prop_array_count(obsoletes); i++) {