svn commit: r263181 - head/usr.sbin/pkg

Bryan Drewery bdrewery at FreeBSD.org
Fri Mar 14 17:37:39 UTC 2014


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


More information about the svn-src-head mailing list