Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Mar 2014 10:47:50 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r263624 - stable/10/usr.sbin/pkg
Message-ID:  <201403221047.s2MAlo3L055888@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Sat Mar 22 10:47:49 2014
New Revision: 263624
URL: http://svnweb.freebsd.org/changeset/base/263624

Log:
  MFC r263181:
  
    Fix ASSUME_ALWAYS_YES not being parsed properly from config after UCL conversion.

Modified:
  stable/10/usr.sbin/pkg/config.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/pkg/config.c
==============================================================================
--- stable/10/usr.sbin/pkg/config.c	Sat Mar 22 10:44:42 2014	(r263623)
+++ stable/10/usr.sbin/pkg/config.c	Sat Mar 22 10:47:49 2014	(r263624)
@@ -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?201403221047.s2MAlo3L055888>