[ostree] pull: Ensure console state for multiple GPG verification messages



commit 0bd1ff393988727a17917b92fec71572d9448b54
Author: Colin Walters <walters redhat com>
Date:   Mon Jun 1 17:39:39 2015 -0400

    pull: Ensure console state for multiple GPG verification messages
    
    If there are multiple signatures to verify, we would attempt to
    display them multiple times, but we can only call
    `gs_console_end_status_line()` if the console has been enabled.
    
    Ensure we turn back on the console after printing our status.  This
    will result in extra newlines, but fixing that cleanly would require a
    saner GSConsole API.

 src/ostree/ot-builtin-pull.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree/ot-builtin-pull.c b/src/ostree/ot-builtin-pull.c
index 874e6da..9192e7c 100644
--- a/src/ostree/ot-builtin-pull.c
+++ b/src/ostree/ot-builtin-pull.c
@@ -54,6 +54,8 @@ gpg_verify_result_cb (OstreeRepo *repo,
 
   g_print ("\n");
   ostree_print_gpg_verify_result (result);
+
+  gs_console_begin_status_line (console, "", NULL, NULL);
 }
 
 gboolean


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