Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do only print the message for pkg info -D is there is actually a message
Baptiste Daroussin committed 12 years ago
commit 0011b5f6de084162f34f84b0df90681005e93d22
parent 96a2e4e
1 file changed +2 -1
modified pkg/utils.c
@@ -429,7 +429,8 @@ print_info(struct pkg * const pkg, unsigned int options)
		case INFO_MESSAGE:
			if (print_tag)
				printf("%-15s:\n", "Message");
-
			pkg_printf("%M\n", pkg);
+
			if (pkg_has_message(pkg))
+
				pkg_printf("%M\n", pkg);
			break;
		case INFO_DEPS:
			if (pkg_list_count(pkg, PKG_DEPS) > 0) {