Do not inherit unneeded objs from trans dictionary onto pkg's pkgdb dictionary.

This commit is contained in:
Juan RP
2012-10-25 09:29:56 +02:00
parent 863f12e349
commit 9e11ea950a
6 changed files with 78 additions and 1 deletions

View File

@@ -156,6 +156,12 @@ xbps_register_pkg(struct xbps_handle *xhp, prop_dictionary_t pkgrd, bool flush)
goto out;
}
}
/*
* Remove unneeded objs from pkg dictionary.
*/
prop_dictionary_remove(pkgd, "remove-and-update");
prop_dictionary_remove(pkgd, "transaction");
if (!xbps_pkgdb_replace_pkgd(xhp, pkgd, pkgname, false, flush)) {
xbps_dbg_printf(xhp,
"%s: failed to replace pkgd dict for %s\n",