xbps-bin: get automatic-install value from installed pkg dict.

--HG--
extra : convert_revision : aa96b498ff3c2b2ce8eac15a6d99ec0306f23b02
This commit is contained in:
Juan RP 2009-08-11 12:39:45 +02:00
parent d584e3c2a8
commit bd8e232a2d
1 changed files with 4 additions and 6 deletions

View File

@ -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));