diff options
author | Richard Hughes <richard@hughsie.com> | 2014-03-20 15:41:04 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-03-20 17:54:52 +0000 |
commit | 50fc0be57d11b757c78b1b2445f4a9d7137a243d (patch) | |
tree | 6175aea257681c9c7a605493515e39655517a556 /libappstream-glib/as-tag.c | |
parent | 2f4dc7bdbc3b407889f239d87b2b1ae018e3a2d8 (diff) | |
download | appstream-glib-50fc0be57d11b757c78b1b2445f4a9d7137a243d.tar.gz |
Add an 'api-version' property to AsStore to generate old-style metadata
This allows us to keep up with the latest API and still write metadata
compatible with old applications not using libappstream-glib or libappstream.
Diffstat (limited to 'libappstream-glib/as-tag.c')
-rw-r--r-- | libappstream-glib/as-tag.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libappstream-glib/as-tag.c b/libappstream-glib/as-tag.c index cf5d22c..96b0a86 100644 --- a/libappstream-glib/as-tag.c +++ b/libappstream-glib/as-tag.c @@ -70,6 +70,10 @@ as_tag_from_string (const gchar *tag) return AS_TAG_CATEGORY; if (g_strcmp0 (tag, "licence") == 0) return AS_TAG_PROJECT_LICENSE; + if (g_strcmp0 (tag, "applications") == 0) + return AS_TAG_APPLICATIONS; + if (g_strcmp0 (tag, "application") == 0) + return AS_TAG_APPLICATION; return AS_TAG_UNKNOWN; } @@ -89,8 +93,8 @@ as_tag_to_string (AsTag tag) { const gchar *str[] = { "unknown", - "applications", - "application", + "components", + "component", "id", "pkgname", "name", |