Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Emit the dep_formula in the maniphest
Baptiste Daroussin committed 9 years ago
commit 9175c7787d0a098dbd979622ba53f44f9dd769a9
parent 47a84f1
1 file changed +4 -0
modified libpkg/pkg_manifest.c
@@ -985,6 +985,10 @@ pkg_emit_object(struct pkg *pkg, short flags)
	ucl_object_insert_key(top, ucl_object_fromstring_common(pkg->sum, 0,
	    UCL_STRING_TRIM), "sum", 3, false);
	ucl_object_insert_key(top, ucl_object_fromint(pkg->flatsize), "flatsize", 8, false);
+
	if (pkg->dep_formula != NULL) {
+
		ucl_object_insert_key(top, ucl_object_fromstring_common(pkg->dep_formula, 0,
+
		    UCL_STRING_TRIM), "dep_formula", 11, false);
+
	}
	/*
	 * XXX: dirty hack to be compatible with pkg 1.2
	 */