xbps-bin: unset some bool vars while processing the transaction to avoid

wrong messages for preserve pkgs.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20100217041941-wrvm86m0tc7ynlvu
This commit is contained in:
Juan RP 2010-02-17 05:19:41 +01:00
parent 2daffcc768
commit 9f4b36292d

View File

@ -506,7 +506,6 @@ exec_transaction(struct transaction *trans)
assert(trans->dict != NULL);
assert(trans->iter != NULL);
update = autoinst = preserve = false;
/*
* Show download/installed size for the transaction.
*/
@ -536,6 +535,8 @@ exec_transaction(struct transaction *trans)
*/
printf("\n[2/3] Unpacking\n");
while ((obj = prop_object_iterator_next(trans->iter)) != NULL) {
update = autoinst = preserve = false;
if (!prop_dictionary_get_cstring_nocopy(obj,
"pkgname", &pkgname))
return errno;
@ -626,7 +627,6 @@ exec_transaction(struct transaction *trans)
"(%s)\n", pkgver, strerror(rv));
return rv;
}
autoinst = false;
}
prop_object_iterator_reset(trans->iter);
/*