Fix xbps_configure_pkg() reporting old version when upgrading packages.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090825040302-azurxpyalot07j81
This commit is contained in:
Juan RP
2009-08-25 06:03:02 +02:00
parent 14c9886cfc
commit 10531d7d45
4 changed files with 19 additions and 15 deletions

View File

@ -415,7 +415,8 @@ exec_transaction(struct transaction *trans)
*/
while ((obj = prop_object_iterator_next(trans->iter)) != NULL) {
prop_dictionary_get_cstring_nocopy(obj, "pkgname", &pkgname);
if ((rv = xbps_configure_pkg(pkgname, false)) != 0) {
prop_dictionary_get_cstring_nocopy(obj, "version", &version);
if ((rv = xbps_configure_pkg(pkgname, version, false)) != 0) {
printf("Error configuring package %s (%s)\n",
pkgname, strerror(rv));
return rv;