summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-12-15 12:45:58 +0000
committerRichard Hughes <richard@hughsie.com>2016-12-15 12:45:58 +0000
commitf663590b549511ff475d6edbddaf7563557a6bd7 (patch)
treee891a7a077e390d259f3552de862d55faf8c1f16
parent713aabac2e727425a533f0d8a777a533fe0d83b6 (diff)
downloadappstream-glib-f663590b549511ff475d6edbddaf7563557a6bd7.tar.gz
trivial: Output the release state if the export is trusted
-rw-r--r--libappstream-glib/as-release.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libappstream-glib/as-release.c b/libappstream-glib/as-release.c
index 7ee7481..72c81ff 100644
--- a/libappstream-glib/as-release.c
+++ b/libappstream-glib/as-release.c
@@ -658,6 +658,11 @@ as_release_node_insert (AsRelease *release, GNode *parent, AsNodeContext *ctx)
as_node_add_attribute (n, "urgency",
as_urgency_kind_to_string (priv->urgency));
}
+ if (as_node_context_get_output_trusted (ctx) &&
+ priv->state != AS_RELEASE_STATE_UNKNOWN) {
+ as_node_add_attribute (n, "state",
+ as_release_state_to_string (priv->state));
+ }
if (priv->version != NULL)
as_node_add_attribute (n, "version", priv->version);
if (as_node_context_get_version (ctx) >= 0.9) {