From 9f4b36292daea3a4adec4a7a83e7e56034bea359 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 17 Feb 2010 05:19:41 +0100 Subject: [PATCH] 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 --- bin/xbps-bin/install.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/xbps-bin/install.c b/bin/xbps-bin/install.c index d8c20aab..53d1a8be 100644 --- a/bin/xbps-bin/install.c +++ b/bin/xbps-bin/install.c @@ -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); /*