Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Only fallback on yaml when ucl parsing actually failed
Baptiste Daroussin committed 12 years ago
commit 004001963e86e40b0f79f2d5c398f0c8e8a16629
parent 9c97b2d
1 file changed +1 -1
modified libpkg/pkg_manifest.c
@@ -752,7 +752,7 @@ pkg_parse_manifest_file(struct pkg *pkg, const char *file, struct pkg_manifest_k

	errno = 0;
	p = ucl_parser_new(0);
-
	if (ucl_parser_add_file(p, file)) {
+
	if (!ucl_parser_add_file(p, file)) {
		if (errno == ENOENT) {
			ucl_parser_free(p);
			return (EPKG_FATAL);