diff options
author | Richard Hughes <richard@hughsie.com> | 2014-06-13 09:02:32 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-06-13 09:02:32 +0100 |
commit | 255a5b600f3b9d6c9b7b18a5a0251114b86cfe3d (patch) | |
tree | ee414dd029ab5ee777d78ae8407e19977874b815 /libappstream-glib | |
parent | e24fbe5510cce422c17460ce2f2088a0331cba4f (diff) | |
download | appstream-glib-255a5b600f3b9d6c9b7b18a5a0251114b86cfe3d.tar.gz |
Allow validating metainfo.xml.in files
Diffstat (limited to 'libappstream-glib')
-rw-r--r-- | libappstream-glib/as-app.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index 774006e..a56a0f9 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -2858,7 +2858,8 @@ as_app_parse_file (AsApp *app, } else if (g_str_has_suffix (filename, ".appdata.xml") || g_str_has_suffix (filename, ".appdata.xml.in")) { as_app_set_source_kind (app, AS_APP_SOURCE_KIND_APPDATA); - } else if (g_str_has_suffix (filename, ".metainfo.xml")) { + } else if (g_str_has_suffix (filename, ".metainfo.xml") || + g_str_has_suffix (filename, ".metainfo.xml.in")) { as_app_set_source_kind (app, AS_APP_SOURCE_KIND_METAINFO); } else { g_set_error (error, |