Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Let the message type name be consistent with others
Baptiste Daroussin committed 11 years ago
commit 0212548f19e91a8444bad02d7460ea2a44d511b3
parent 6208345876e1c31f09351226a83f9e0a638a4fca
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;