unpack: use pkg dictionary from metadir to find obsoletes!
This commit is contained in:
parent
cc99e887a2
commit
fcdb6b0930
@ -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"
|
||||
|
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user