diff options
author | Richard Hughes <richard@hughsie.com> | 2016-01-25 20:08:15 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-01-25 20:08:15 +0000 |
commit | 69bc75c5de948797d12e7534f12a9a83ba8d005d (patch) | |
tree | 32c2e1d36ef2bff7976592d3c3cebf12e1c7f9e9 /libappstream-glib | |
parent | 5a29c618423d0dd68eb1f1209749994b2a3d99fc (diff) | |
download | appstream-glib-69bc75c5de948797d12e7534f12a9a83ba8d005d.tar.gz |
Support multi-line copyright statements
Fixes https://github.com/hughsie/appstream-glib/issues/81
Diffstat (limited to 'libappstream-glib')
-rw-r--r-- | libappstream-glib/as-app.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c index 5947a2d..0c03797 100644 --- a/libappstream-glib/as-app.c +++ b/libappstream-glib/as-app.c @@ -4395,8 +4395,7 @@ as_app_parse_appdata_file (AsApp *app, priv->problems |= AS_APP_PROBLEM_NO_XML_HEADER; /* check for copyright */ - tmp = g_strstr_len (data, len, "<!-- Copyright"); - if (tmp == NULL) + if (fnmatch("*<!--*Copyright*-->*", data, 0) != 0) priv->problems |= AS_APP_PROBLEM_NO_COPYRIGHT_INFO; /* parse */ |