Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Make formatting consistent
Baptiste Daroussin committed 11 years ago
commit 6208345876e1c31f09351226a83f9e0a638a4fca
parent c12a5fd
1 file changed +3 -3
modified libpkg/pkg_event.c
@@ -336,7 +336,7 @@ pipeevent(struct pkg_event *ev)
			ev->e_incremental_update.processed);
		break;
	case PKG_EVENT_QUERY_YESNO:
-
		sbuf_printf(msg, "{\"type\": \"QUERY_YESNO\", "
+
		sbuf_printf(msg, "{ \"type\": \"QUERY_YESNO\", "
		    "\"data\": {"
			"\"msg\": \"%s\","
			"\"default\": \"%d\""
@@ -344,7 +344,7 @@ pipeevent(struct pkg_event *ev)
			ev->e_query_yesno.deft);
		break;
	case PKG_EVENT_QUERY_SELECT:
-
		sbuf_printf(msg, "{\"type\": \"QUERY_SELECT\", "
+
		sbuf_printf(msg, "{ \"type\": \"QUERY_SELECT\", "
		    "\"data\": {"
			"\"msg\": \"%s\","
			"\"ncnt\": \"%d\","
@@ -366,7 +366,7 @@ pipeevent(struct pkg_event *ev)
		  "\"data\": {}}");
		break;
	case PKG_EVENT_PROGRESS_TICK:
-
		sbuf_printf(msg, "{\"type\": \"PROGRESS_TICK\", "
+
		sbuf_printf(msg, "{ \"type\": \"PROGRESS_TICK\", "
		  "\"data\": { \"current\": %ld, \"total\" : %ld}}",
		  ev->e_progress_tick.current, ev->e_progress_tick.total);
		break;