summaryrefslogtreecommitdiff
path: root/common/flatpak-ref-utils-private.h
diff options
context:
space:
mode:
authorPhaedrus Leeds <mwleeds@protonmail.com>2021-10-27 18:56:25 -0700
committerPhaedrus Leeds <mwl458@gmail.com>2022-01-04 11:42:00 -0800
commit7b6dba88037e6f22f91b195193ea8c627cef1cb2 (patch)
tree9d50e70c1dc20b53d3b91b91b939a4ecd7c62f78 /common/flatpak-ref-utils-private.h
parent0c2cea75e85387a5aeee7779a8addaff5d653ea1 (diff)
downloadflatpak-7b6dba88037e6f22f91b195193ea8c627cef1cb2.tar.gz
history: Fix printing refs
The history command seems to have been broken since it was changed to use FlatpakDecomposed, since that type only works for app or runtime refs, resulting in errors such as: $ flatpak history error: appstream2/x86_64 is not application or runtime Fix this by making the logic a bit smarter, and don't let any one invalid ref entry prevent the whole command from working. Fixes #4332
Diffstat (limited to 'common/flatpak-ref-utils-private.h')
-rw-r--r--common/flatpak-ref-utils-private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/flatpak-ref-utils-private.h b/common/flatpak-ref-utils-private.h
index 64d93b54..ac73dd16 100644
--- a/common/flatpak-ref-utils-private.h
+++ b/common/flatpak-ref-utils-private.h
@@ -43,6 +43,7 @@ char * flatpak_make_valid_id_prefix (const char *orig_id);
gboolean flatpak_id_has_subref_suffix (const char *id,
gssize id_len);
+gboolean flatpak_is_app_runtime_or_appstream_ref (const char *ref);
char * flatpak_get_arch_for_ref (const char *ref);
const char *flatpak_get_compat_arch_reverse (const char *compat_arch);