Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
finish converting pkg annotations to pkg_object
Baptiste Daroussin committed 12 years ago
commit 73e0da6defe0d0c9779540b77bb0bed913f2edaf
parent 7c88f3b
1 file changed +2 -3
modified libpkg/pkg.c
@@ -1047,10 +1047,9 @@ pkg_addannotation(struct pkg *pkg, const char *tag, const char *value)
	           " ignoring", tag, value);
		return (EPKG_OK);
	}
-
	an = NULL;
-
	an = ucl_object_fromstring(value);
+
	an = ucl_object_fromstring_common(value, strlen(value), 0);
	pkg->annotations = ucl_object_insert_key(pkg->annotations,
-
	    an, tag, strlen(tag), false);
+
	    an, tag, strlen(tag), true);

	return (EPKG_OK);
}