Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Mar 2014 17:37:38 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r263181 - head/usr.sbin/pkg
Message-ID:  <201403141737.s2EHbcE6003552@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Fri Mar 14 17:37:38 2014
New Revision: 263181
URL: http://svnweb.freebsd.org/changeset/base/263181

Log:
  Fix ASSUME_ALWAYS_YES not being parsed properly from config after UCL conversion.
  
  Sponsored by:	EMC / Isilon Storage Division
  MFC after:	1 week

Modified:
  head/usr.sbin/pkg/config.c

Modified: head/usr.sbin/pkg/config.c
==============================================================================
--- head/usr.sbin/pkg/config.c	Fri Mar 14 17:20:45 2014	(r263180)
+++ head/usr.sbin/pkg/config.c	Fri Mar 14 17:37:38 2014	(r263181)
@@ -594,6 +594,10 @@ config_parse(ucl_object_t *obj, pkg_conf
 				    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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403141737.s2EHbcE6003552>