xbps_pkgdb_update: added 3rd bool arg "update", not update in memory pkgdb.

If true, the in memory pkgdb dict will be updated with data from the on-disk pkgdb.
This commit is contained in:
Juan RP
2015-01-10 19:42:09 +01:00
parent 7c153a2b15
commit 7dea05f507
3 changed files with 14 additions and 9 deletions

View File

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2009-2014 Juan Romero Pardines.
* Copyright (c) 2009-2015 Juan Romero Pardines.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -348,7 +348,7 @@ xbps_transaction_commit(struct xbps_handle *xhp)
xbps_object_iterator_reset(iter);
/* Force a pkgdb write for all unpacked pkgs in transaction */
(void)xbps_pkgdb_update(xhp, true);
(void)xbps_pkgdb_update(xhp, true, true);
/*
* Configure all unpacked packages.
@ -390,7 +390,7 @@ xbps_transaction_commit(struct xbps_handle *xhp)
out:
xbps_object_iterator_release(iter);
/* Force a pkgdb write for all unpacked pkgs in transaction */
(void)xbps_pkgdb_update(xhp, true);
(void)xbps_pkgdb_update(xhp, true, true);
return rv;
}