Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
For interrupted progressbar, just print a newline rather than risk calling all cleanup
Bryan Drewery committed 11 years ago
commit a2d8f4bbce21d4eb789112964667daf403d33159
parent 2407438
1 file changed +2 -3
modified src/event.c
@@ -534,13 +534,12 @@ event_callback(void *data, struct pkg_event *ev)

	/*
	 * If a progressbar has been interrupted by another event, then
-
	 * we need to stop it immediately to avoid bad formatting
+
	 * we need to add a newline to prevent bad formatting.
	 */
	if (progress_started && ev->type != PKG_EVENT_PROGRESS_TICK &&
	    !progress_interrupted) {
-
		progressbar_stop();
+
		putchar('\n');
		progress_interrupted = true;
-
		progress_started = true;
	}

	switch(ev->type) {