[ostree] tool: End status line in switch/upgrade too



commit ad46467f2babd7dff09e26d773ea7391770cb837
Author: Colin Walters <walters verbum org>
Date:   Thu Mar 27 07:45:13 2014 -0400

    tool: End status line in switch/upgrade too

 src/ostree/ot-admin-builtin-switch.c  |    2 ++
 src/ostree/ot-admin-builtin-upgrade.c |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree/ot-admin-builtin-switch.c b/src/ostree/ot-admin-builtin-switch.c
index d9d6ee0..55d1fff 100644
--- a/src/ostree/ot-admin-builtin-switch.c
+++ b/src/ostree/ot-admin-builtin-switch.c
@@ -145,6 +145,8 @@ ot_admin_builtin_switch (int argc, char **argv, OstreeSysroot *sysroot, GCancell
 
   ret = TRUE;
  out:
+  if (console)
+    gs_console_end_status_line (console, NULL, NULL);
   if (new_origin)
     g_key_file_unref (new_origin);
   if (context)
diff --git a/src/ostree/ot-admin-builtin-upgrade.c b/src/ostree/ot-admin-builtin-upgrade.c
index f852711..a2de168 100644
--- a/src/ostree/ot-admin-builtin-upgrade.c
+++ b/src/ostree/ot-admin-builtin-upgrade.c
@@ -108,6 +108,8 @@ ot_admin_builtin_upgrade (int argc, char **argv, OstreeSysroot *sysroot, GCancel
 
   ret = TRUE;
  out:
+  if (console)
+    gs_console_end_status_line (console, NULL, NULL);
   if (context)
     g_option_context_free (context);
   return ret;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]