Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Print the correct size if this is a file.
jlaffaye committed 14 years ago
commit 4c5c3e381d98cfca3e8cd6503d68dd0d1f62f404
parent 1048b93
1 file changed +1 -1
modified pkg/utils.c
@@ -72,7 +72,7 @@ print_info(struct pkg * const pkg, unsigned int opt)
                                printf("\t%s: %s\n", pkg_option_opt(option), pkg_option_value(option));
                }

-
		if (pkg_type(pkg) == PKG_INSTALLED) {
+
		if (pkg_type(pkg) == PKG_INSTALLED || pkg_type(pkg) == PKG_FILE) {
			humanize_number(size, sizeof(size), pkg_flatsize(pkg), "B", HN_AUTOSCALE, 0);
			printf("%-15s: %s\n", "Flat size", size);
		} else {