summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2022-01-12 16:01:07 +0000
committerPhaedrus Leeds <mwl458@gmail.com>2022-01-12 13:55:49 -0800
commit97db30f38d87a05ed1b8abf30d18a24e171c6d52 (patch)
treea55dce2851f359159dacf2197052f0a7246a84d3 /app
parenta626003d6d57d807bd5e6cfd2abbd77407961ecc (diff)
downloadflatpak-97db30f38d87a05ed1b8abf30d18a24e171c6d52.tar.gz
Don't rely on AS_BUNDLE_KIND_FLATPAK existing
The appstream-glib in Ubuntu 16.04 didn't have this. Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'app')
-rw-r--r--app/flatpak-builtins-search.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/flatpak-builtins-search.c b/app/flatpak-builtins-search.c
index fc525f43..3cb65c6d 100644
--- a/app/flatpak-builtins-search.c
+++ b/app/flatpak-builtins-search.c
@@ -198,6 +198,7 @@ static char *
_app_get_id_no_suffix (AsApp *app)
{
const char *id_stripped = NULL;
+#if AS_CHECK_VERSION (0, 5, 15)
GPtrArray *bundles = NULL;
/* First try using the <bundle> ID which is unambiguously the flatpak ref */
@@ -213,6 +214,7 @@ _app_get_id_no_suffix (AsApp *app)
if (decomposed != NULL)
return flatpak_decomposed_dup_id (decomposed);
}
+#endif
/* Fall back to using the <id> field, which is required by appstream spec,
* but make sure the .desktop suffix isn't stripped overzealously