Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Let the message type name be consistent with others
Baptiste Daroussin committed 11 years ago
commit 0212548f19e91a8444bad02d7460ea2a44d511b3
parent 6208345
1 file changed +2 -2
modified libpkg/pkg_event.c
@@ -362,11 +362,11 @@ pipeevent(struct pkg_event *ev)
			ev->e_query_select.items[i]);
		break;
	case PKG_EVENT_PROGRESS_START:
-
		sbuf_printf(msg, "{\"type\": \"PROGRESS_START\", "
+
		sbuf_printf(msg, "{\"type\": \"INFO_PROGRESS_START\", "
		  "\"data\": {}}");
		break;
	case PKG_EVENT_PROGRESS_TICK:
-
		sbuf_printf(msg, "{ \"type\": \"PROGRESS_TICK\", "
+
		sbuf_printf(msg, "{ \"type\": \"INFO_PROGRESS_TICK\", "
		  "\"data\": { \"current\": %ld, \"total\" : %ld}}",
		  ev->e_progress_tick.current, ev->e_progress_tick.total);
		break;