diff options
author | Richard Hughes <richard@hughsie.com> | 2018-11-27 14:39:02 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2018-11-27 14:54:07 +0000 |
commit | 7b3b5e9179b12a6c8b23d9b5f7b3c6a17ed28e35 (patch) | |
tree | fe89242d49dfd3d8ba9447430e4f5f09ab4fbfd3 | |
parent | 5f6aeb9817187bb0666056f3f5e815018bd1ac92 (diff) | |
download | appstream-glib-7b3b5e9179b12a6c8b23d9b5f7b3c6a17ed28e35.tar.gz |
trivial: Allow using metainfo.xml files with appdata-to-news
-rw-r--r-- | client/as-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/as-util.c b/client/as-util.c index c0122ff..ae9a402 100644 --- a/client/as-util.c +++ b/client/as-util.c @@ -640,7 +640,8 @@ as_util_appdata_to_news (AsUtilPrivate *priv, gchar **values, GError **error) g_print ("\n\n"); /* check types */ - if (as_format_guess_kind (values[f]) != AS_FORMAT_KIND_APPDATA) { + if (as_format_guess_kind (values[f]) != AS_FORMAT_KIND_APPDATA && + as_format_guess_kind (values[f]) != AS_FORMAT_KIND_METAINFO) { g_set_error_literal (error, AS_ERROR, AS_ERROR_INVALID_ARGUMENTS, |