Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Really emit licenses
Baptiste Daroussin committed 12 years ago
commit 1488347b6270560faf4cc3d17c5de3e59ea524f0
parent 1bd5ad5
1 file changed +2 -2
modified libpkg/pkg_manifest.c
@@ -884,9 +884,9 @@ emit_manifest(struct pkg *pkg, struct sbuf **out, short flags)
	}

	pkg_debug(4, "Emitting licenses");
-
	if (pkg->categories != NULL)
+
	if (pkg->licenses != NULL)
		obj = ucl_object_insert_key(top,
-
		    ucl_object_ref(pkg->categories), "licenses", 8, false);
+
		    ucl_object_ref(pkg->licenses), "licenses", 8, false);

	obj = ucl_object_insert_key(top, ucl_object_fromint(flatsize), "flatsize", 8, false);
	if (pkgsize > 0)