[ostree] pull-local: Fix crasher in previous commit when not connected to tty
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] pull-local: Fix crasher in previous commit when not connected to tty
- Date: Mon, 28 Jan 2013 20:44:43 +0000 (UTC)
commit 42e3f1f4ab283d0868d7751a6b1a544a24371dee
Author: Colin Walters <walters verbum org>
Date: Mon Jan 28 15:44:13 2013 -0500
pull-local: Fix crasher in previous commit when not connected to tty
src/ostree/ot-builtin-pull-local.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/src/ostree/ot-builtin-pull-local.c b/src/ostree/ot-builtin-pull-local.c
index d8a69a1..81c6d88 100644
--- a/src/ostree/ot-builtin-pull-local.c
+++ b/src/ostree/ot-builtin-pull-local.c
@@ -277,13 +277,18 @@ ostree_builtin_pull_local (int argc, char **argv, GFile *repo_path, GError **err
g_timeout_add_seconds (1, idle_print_status, data);
idle_print_status (data);
}
+ else
+ {
+ g_print ("Copying %d objects...\n", data->n_objects_to_check);
+ }
g_main_loop_run (data->loop);
- idle_print_status (data);
-
if (console)
- gs_console_end_status_line (console, NULL, NULL);
+ {
+ idle_print_status (data);
+ gs_console_end_status_line (console, NULL, NULL);
+ }
}
if (!ostree_repo_commit_transaction (data->dest_repo, NULL, error))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]