summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2014-03-22 10:47:49 +0000
committerbdrewery <bdrewery@FreeBSD.org>2014-03-22 10:47:49 +0000
commit4cc5e3a4e513be11c65c86f07555d496ed75923f (patch)
treee83c3bd9e5706993043b7df66aac1cc2dee154fd /usr.sbin/pkg
parentcbf71ae1cf07231a229b9dbbc54154af65327287 (diff)
downloadFreeBSD-src-4cc5e3a4e513be11c65c86f07555d496ed75923f.zip
FreeBSD-src-4cc5e3a4e513be11c65c86f07555d496ed75923f.tar.gz
MFC r263181:
Fix ASSUME_ALWAYS_YES not being parsed properly from config after UCL conversion.
Diffstat (limited to 'usr.sbin/pkg')
-rw-r--r--usr.sbin/pkg/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/pkg/config.c b/usr.sbin/pkg/config.c
index db4a434..e46da4a 100644
--- a/usr.sbin/pkg/config.c
+++ b/usr.sbin/pkg/config.c
@@ -594,6 +594,10 @@ config_parse(ucl_object_t *obj, pkg_conf_file_t conftype)
next);
}
break;
+ case PKG_CONFIG_BOOL:
+ temp_config[i].value =
+ strdup(ucl_object_toboolean(cur) ? "yes" : "no");
+ break;
default:
/* Normal string value. */
temp_config[i].value = strdup(ucl_object_tostring(cur));
OpenPOWER on IntegriCloud