Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Don't print date of package installation if query goes to remote repo.
Andrej Zverev committed 11 years ago
commit 262fa5d797f1b9bc4267e440211522569941ee59
parent 5455a45
1 file changed +7 -3
modified src/utils.c
@@ -374,9 +374,13 @@ print_info(struct pkg * const pkg, uint64_t options)
			pkg_printf("%n\n", pkg);
			break;
		case INFO_INSTALLED:
-
			if (print_tag)
-
				printf("%-15s: ", "Installed on");
-
			pkg_printf("%t%{%+%}\n", pkg);
+
			if (pkg_type(pkg) != PKG_REMOTE) {
+
				if (print_tag) {
+
					printf("%-15s: ", "Installed on");
+
					pkg_printf("%t%{%+%}\n", pkg);
+
				}
+
			} else if (!print_tag)
+
				printf("\n");
			break;
		case INFO_VERSION:
			if (print_tag)