Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
update: improve message
Baptiste Daroussin committed 1 year ago
commit f10050c519e5d087ecf98483a41534a7c2d98c3d
parent 9920e84
1 file changed +7 -1
modified src/update.c
@@ -110,7 +110,13 @@ pkgcli_update(bool force, bool strict, c_charv_t *reponames)
	}
	else if (update_count == total_count) {
		if (!quiet) {
-
			printf("All repositories are up to date.\n");
+
			if (reponames == NULL || reponames->len == 0)
+
				printf("All repositories are up to date.\n");
+
			else {
+
				for (size_t i = 0; i < reponames->len; i++)
+
					printf("%s%s", i == 0 ? "" : ", ", reponames->d[i]);
+
				printf(" %s up to date.\n", reponames->len == 1 ? "is" : "are");
+
			}
		}
	}
	else if (total_count == 1) {