summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Valentini <decathorpe@users.noreply.github.com>2016-05-06 14:07:48 +0200
committerRichard Hughes <richard@hughsie.com>2016-06-08 18:55:42 +0100
commit3dd32bffe47c978b23fb7289d9862fb74c7bf50f (patch)
tree1a4d6be8cfcdee568fb1bec6b292c86e46d84c31
parent587f9991db9dfd54089cc3949b5660eb31dda2a9 (diff)
downloadappstream-glib-3dd32bffe47c978b23fb7289d9862fb74c7bf50f.tar.gz
Add elementary to list of project groups
Most official elementary software sets the project_group tag content to 'elementary', which is not a recognised project group. This renders nearly all the appdata files invalid when trying to validate them with appstream-util.
-rw-r--r--libappstream-glib/as-app.c1
-rw-r--r--libappstream-glib/as-environment-ids.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c
index 0de4fc6..6ff2414 100644
--- a/libappstream-glib/as-app.c
+++ b/libappstream-glib/as-app.c
@@ -4761,6 +4761,7 @@ as_app_parse_appdata_guess_project_group (AsApp *app)
const gchar *project_group;
const gchar *url_glob;
} table[] = {
+ { "elementary", "http*://elementary.io*" },
{ "Enlightenment", "http://*enlightenment.org*" },
{ "GNOME", "http*://*.gnome.org*" },
{ "GNOME", "http://gnome-*.sourceforge.net/" },
diff --git a/libappstream-glib/as-environment-ids.txt b/libappstream-glib/as-environment-ids.txt
index 4a5c0dd..3a6a1f3 100644
--- a/libappstream-glib/as-environment-ids.txt
+++ b/libappstream-glib/as-environment-ids.txt
@@ -10,3 +10,4 @@ Unity
XFCE
EDE
Cinnamon
+elementary