Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Improve output consistency
Baptiste Daroussin committed 6 years ago
commit 3de0f8dfeab83d0e6755be0286889d1780009973
parent 3b04262
4 files changed +6 -6
modified src/utils.c
@@ -857,7 +857,7 @@ display_summary_item(struct pkg_solved_display_item *it, int64_t dlsize)
		break;
	case PKG_DISPLAY_DELETE:
		pkg_get(it->new, PKG_REASON, &why);
-
		pkg_printf("\t%n-%v", it->new, it->new);
+
		pkg_printf("\t%n: %v", it->new, it->new);
		if (why != NULL)
			printf(" (%s)", why);
		printf("\n");
@@ -895,7 +895,7 @@ display_summary_item(struct pkg_solved_display_item *it, int64_t dlsize)
		humanize_number(tlsize, sizeof(size), dlsize, "B",
		    HN_AUTOSCALE, HN_IEC_PREFIXES);

-
		pkg_printf("\t%n-%v ", it->new, it->new);
+
		pkg_printf("\t%n: %v ", it->new, it->new);
		printf("(%s: %.2f%% of the %s to download)\n", size,
		    ((double)100 * pkgsize) / (double)dlsize, tlsize);
		break;
modified tests/frontend/autoremove.sh
@@ -89,7 +89,7 @@ autoremove_dryrun_body() {

	atf_check \
	    -o match:"^Installed packages to be REMOVED:$" \
-
	    -o match:"^	test-1$" \
+
	    -o match:"^	test: 1$" \
	    -e empty \
	    -s exit:0 \
	    pkg autoremove -yn
modified tests/frontend/conflicts.sh
@@ -138,7 +138,7 @@ Checking integrity... done (0 conflicting)
The following 3 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
-
	bar-1.0
+
	bar: 1.0

New packages to be INSTALLED:
	bar1: 1.1
@@ -254,7 +254,7 @@ Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
-
	test-1
+
	test: 1

New packages to be INSTALLED:
	test2: 1
modified tests/frontend/rubypuppet.sh
@@ -239,7 +239,7 @@ Checking integrity... done (0 conflicting)
The following 6 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
-
	ruby20-gems-1.0
+
	ruby20-gems: 1.0

New packages to be INSTALLED:
	ruby21-gems: 1.0