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:
parent
2daffcc768
commit
9f4b36292d
@ -506,7 +506,6 @@ exec_transaction(struct transaction *trans)
|
|||||||
assert(trans->dict != NULL);
|
assert(trans->dict != NULL);
|
||||||
assert(trans->iter != NULL);
|
assert(trans->iter != NULL);
|
||||||
|
|
||||||
update = autoinst = preserve = false;
|
|
||||||
/*
|
/*
|
||||||
* Show download/installed size for the transaction.
|
* Show download/installed size for the transaction.
|
||||||
*/
|
*/
|
||||||
@ -536,6 +535,8 @@ exec_transaction(struct transaction *trans)
|
|||||||
*/
|
*/
|
||||||
printf("\n[2/3] Unpacking\n");
|
printf("\n[2/3] Unpacking\n");
|
||||||
while ((obj = prop_object_iterator_next(trans->iter)) != NULL) {
|
while ((obj = prop_object_iterator_next(trans->iter)) != NULL) {
|
||||||
|
update = autoinst = preserve = false;
|
||||||
|
|
||||||
if (!prop_dictionary_get_cstring_nocopy(obj,
|
if (!prop_dictionary_get_cstring_nocopy(obj,
|
||||||
"pkgname", &pkgname))
|
"pkgname", &pkgname))
|
||||||
return errno;
|
return errno;
|
||||||
@ -626,7 +627,6 @@ exec_transaction(struct transaction *trans)
|
|||||||
"(%s)\n", pkgver, strerror(rv));
|
"(%s)\n", pkgver, strerror(rv));
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
autoinst = false;
|
|
||||||
}
|
}
|
||||||
prop_object_iterator_reset(trans->iter);
|
prop_object_iterator_reset(trans->iter);
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user