summaryrefslogtreecommitdiff
path: root/src/ostree/ot-admin-builtin-upgrade.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-01-10 08:15:54 -0500
committerColin Walters <walters@verbum.org>2014-01-10 08:15:54 -0500
commitff2c592ac9aac2da126a1c629f15bebf202924e8 (patch)
tree9f02b4c873a6e11354d219d32c4fe697f16939aa /src/ostree/ot-admin-builtin-upgrade.c
parent091523a3bd6531a73a9322599cc8848d830d997c (diff)
downloadostree-ff2c592ac9aac2da126a1c629f15bebf202924e8.tar.gz
pull: Ensure we begin a status line
Otherwise if the operation completes before anything happens, we hit an assertion trying to end a status line when we didn't begin one.
Diffstat (limited to 'src/ostree/ot-admin-builtin-upgrade.c')
-rw-r--r--src/ostree/ot-admin-builtin-upgrade.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ostree/ot-admin-builtin-upgrade.c b/src/ostree/ot-admin-builtin-upgrade.c
index 12495018..299c6a81 100644
--- a/src/ostree/ot-admin-builtin-upgrade.c
+++ b/src/ostree/ot-admin-builtin-upgrade.c
@@ -110,7 +110,10 @@ ot_admin_builtin_upgrade (int argc, char **argv, OstreeSysroot *sysroot, GCancel
console = gs_console_get ();
if (console)
- progress = ostree_async_progress_new_and_connect (ot_common_pull_progress, console);
+ {
+ gs_console_begin_status_line (console, "", NULL, NULL);
+ progress = ostree_async_progress_new_and_connect (ot_common_pull_progress, console);
+ }
g_print ("Fetching remote %s ref %s\n", origin_remote, origin_ref);