Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Accept on, true and yes as true for boolean in configuration
Baptiste Daroussin committed 14 years ago
commit 5bd862416c0e1235954f53537c2cade8f4e74853
parent 09f5f496c3fd8ab36f7eddcdafb46f9581e1268f
1 file changed +4 -1
modified libpkg/pkg_config.c
@@ -188,7 +188,10 @@ pkg_config_bool(pkg_config_key key, bool *val)
		return (EPKG_FATAL);
	}

-
	if (c[key].val != NULL && strcasecmp(c[key].val, "yes") == 0)
+
	if (c[key].val != NULL && (
+
	    strcasecmp(c[key].val, "yes") == 0 ||
+
	    strcasecmp(c[key].val, "true" ) == 0 ||
+
	    strcasecmp(c[key].val, "on" ) == 0))
		*val = true;

	return (EPKG_OK);