Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg_printf() needs more args there.
Matthew Seaman committed 12 years ago
commit 1e2a9bb010600aa35f497e29098bf2eb5ee95058
parent e6ec318
2 files changed +1 -4
modified libpkg/pkg_printf.c
@@ -735,11 +735,8 @@ format_licenses(struct sbuf *sbuf, const void *data, struct percent_esc *p)
	else {
		struct pkg_license	*lic = NULL;
		int			 count;
-
		lic_t			 license_logic;
-


		set_list_defaults(p, "%Ln", " %l ");
-
		pkg_get(pkg, PKG_LICENSE_LOGIC, &license_logic);

		count = 1;
		while (pkg_licenses(pkg, &lic) == EPKG_OK) {
modified pkg/utils.c
@@ -357,7 +357,7 @@ print_info(struct pkg * const pkg, unsigned int options)
			if (pkg_list_count(pkg, PKG_LICENSES) > 0) {
				if (print_tag)
					printf("%-15s: ", "Licenses");
-
				pkg_printf("%L%{%Ln%| %l %}\n");
+
				pkg_printf("%L%{%Ln%| %l %}\n", pkg);
			} else if (!print_tag)
				printf("\n");
			break;