[ostree] dump: Print the version when dumping a commit, log/show/etc.
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] dump: Print the version when dumping a commit, log/show/etc.
- Date: Thu, 23 Oct 2014 15:26:41 +0000 (UTC)
commit aab6e7bdf26f2a51e4d5bb9cd423443ec8748a93
Author: James Antill <james and org>
Date: Wed Oct 22 01:23:49 2014 -0400
dump: Print the version when dumping a commit, log/show/etc.
src/ostree/ot-dump.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/ostree/ot-dump.c b/src/ostree/ot-dump.c
index bb1f982..a9fb623 100644
--- a/src/ostree/ot-dump.c
+++ b/src/ostree/ot-dump.c
@@ -26,6 +26,7 @@
#include "ot-dump.h"
#include "otutil.h"
+#include "ot-admin-functions.h"
void
ot_dump_variant (GVariant *variant)
@@ -92,6 +93,7 @@ dump_commit (GVariant *variant,
const gchar *body;
guint64 timestamp;
gs_free gchar *str = NULL;
+ gs_free gchar *version = NULL;
/* See OSTREE_COMMIT_GVARIANT_FORMAT */
g_variant_get (variant, "(a{sv}aya(say)&s&stayay)", NULL, NULL, NULL,
@@ -102,6 +104,11 @@ dump_commit (GVariant *variant,
if (str)
g_print ("Date: %s\n", str);
+ if ((version = ot_admin_checksum_version (variant)))
+ {
+ g_print ("Version: %s\n", version);
+ }
+
g_print ("\n");
dump_indented_lines (subject);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]