From bd8e232a2d1827447fcb8d9e8f512b07d0ab5f84 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 11 Aug 2009 12:39:45 +0200 Subject: [PATCH] xbps-bin: get automatic-install value from installed pkg dict. --HG-- extra : convert_revision : aa96b498ff3c2b2ce8eac15a6d99ec0306f23b02 --- bin/xbps-bin/install.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/xbps-bin/install.c b/bin/xbps-bin/install.c index 9f2a0edf7a1..fa7c7d3d10f 100644 --- a/bin/xbps-bin/install.c +++ b/bin/xbps-bin/install.c @@ -347,6 +347,10 @@ exec_transaction(struct transaction *trans) prop_dictionary_get_cstring_nocopy(instpkgd, "version", &instver); + autoinst = false; + prop_dictionary_get_bool(instpkgd, "automatic-install", + &autoinst); + isdep = autoinst; prop_object_release(instpkgd); /* @@ -376,12 +380,6 @@ exec_transaction(struct transaction *trans) /* * Register binary package. */ - if (trans->type == TRANS_ALL) { - prop_dictionary_get_bool(obj, "automatic-install", - &autoinst); - isdep = autoinst; - } - if ((rv = xbps_register_pkg(obj, isdep)) != 0) { printf("error: registering %s-%s! (%s)\n", pkgname, version, strerror(rv));