libostree: Fix crash if output is not a tty
This was a recent regression.
This commit is contained in:
parent
cbc11f42e5
commit
b6b7d37c9d
|
|
@ -1245,7 +1245,10 @@ ostree_repo_pull (OstreeRepo *self,
|
|||
(guint64)(bytes_transferred / shift),
|
||||
shift == 1 ? "B" : "KiB",
|
||||
(guint) ((end_time - start_time) / G_USEC_PER_SEC));
|
||||
if (pull_data->progress)
|
||||
ostree_async_progress_set_status (pull_data->progress, msg);
|
||||
else
|
||||
g_print ("%s\n", msg);
|
||||
}
|
||||
|
||||
ret = TRUE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue