summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-bundle.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-07-31 21:18:53 +0100
committerRichard Hughes <richard@hughsie.com>2016-07-31 21:33:04 +0100
commit0b0ac641228cf886438f6cd363b80a4946267549 (patch)
tree7fa6375dd305292235a34fd95d4f6c12bde2c638 /libappstream-glib/as-bundle.c
parente1b0b754ea16a9ec5d1be34541f4e098406665c6 (diff)
downloadappstream-glib-0b0ac641228cf886438f6cd363b80a4946267549.tar.gz
trivial: Add AS_BUNDLE_KIND_PACKAGE
Diffstat (limited to 'libappstream-glib/as-bundle.c')
-rw-r--r--libappstream-glib/as-bundle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-glib/as-bundle.c b/libappstream-glib/as-bundle.c
index ee9f431..2a4f109 100644
--- a/libappstream-glib/as-bundle.c
+++ b/libappstream-glib/as-bundle.c
@@ -98,6 +98,8 @@ as_bundle_kind_from_string (const gchar *kind)
return AS_BUNDLE_KIND_FLATPAK;
if (g_strcmp0 (kind, "snap") == 0)
return AS_BUNDLE_KIND_SNAP;
+ if (g_strcmp0 (kind, "package") == 0)
+ return AS_BUNDLE_KIND_PACKAGE;
return AS_BUNDLE_KIND_UNKNOWN;
}
@@ -120,6 +122,8 @@ as_bundle_kind_to_string (AsBundleKind kind)
return "flatpak";
if (kind == AS_BUNDLE_KIND_SNAP)
return "snap";
+ if (kind == AS_BUNDLE_KIND_PACKAGE)
+ return "package";
return NULL;
}