summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-tag.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-03-20 15:24:10 +0000
committerRichard Hughes <richard@hughsie.com>2014-03-20 15:24:10 +0000
commit8129ec1d07f1388803bb078fc78d191a86f48b06 (patch)
tree93a41430e47898cdf23d7254bb46aad5ef48fff3 /libappstream-glib/as-tag.c
parent884d9c85b3010203229e2100e5d77b7256035902 (diff)
downloadappstream-glib-8129ec1d07f1388803bb078fc78d191a86f48b06.tar.gz
trivial: Actually accept deprecated tags again
Diffstat (limited to 'libappstream-glib/as-tag.c')
-rw-r--r--libappstream-glib/as-tag.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libappstream-glib/as-tag.c b/libappstream-glib/as-tag.c
index 319c77d..cf5d22c 100644
--- a/libappstream-glib/as-tag.c
+++ b/libappstream-glib/as-tag.c
@@ -62,6 +62,15 @@ as_tag_from_string (const gchar *tag)
for (i = 0; i < AS_TAG_LAST; i++)
if (qenum[i] == qtag)
return i;
+
+ /* deprecated names */
+ if (g_strcmp0 (tag, "appcategories") == 0)
+ return AS_TAG_CATEGORIES;
+ if (g_strcmp0 (tag, "appcategory") == 0)
+ return AS_TAG_CATEGORY;
+ if (g_strcmp0 (tag, "licence") == 0)
+ return AS_TAG_PROJECT_LICENSE;
+
return AS_TAG_UNKNOWN;
}