From 02bef871c046fc7377b8357b47e79d3257036c4e Mon Sep 17 00:00:00 2001 From: Timo Eisenmann <141955678+eit47@users.noreply.github.com> Date: Sun, 17 Sep 2023 18:10:04 +0200 Subject: [PATCH] remote-info: Fix call to flatpak_dir_load_appstream_store() Use architecture instead of id in call to flatpak_dir_load_appstream_store (). Without this, remote-info does not show AppStream metadata. Fixes: adb3b61f "decomposed: Return FlatpakDecomposed from flatpak_dir_find_remote_ref()" --- app/flatpak-builtins-remote-info.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/flatpak-builtins-remote-info.c b/app/flatpak-builtins-remote-info.c index bec93e89..5f6b737c 100644 --- a/app/flatpak-builtins-remote-info.c +++ b/app/flatpak-builtins-remote-info.c @@ -183,11 +183,11 @@ flatpak_builtin_remote_info (int argc, char **argv, GCancellable *cancellable, G AsComponent *app = NULL; const char *version = NULL; const char *license = NULL; - g_autofree char *id = flatpak_decomposed_dup_id (ref); + g_autofree char *arch = flatpak_decomposed_dup_arch (ref); flatpak_get_window_size (&rows, &cols); - flatpak_dir_load_appstream_store (preferred_dir, remote, id, mdata, NULL, NULL); + flatpak_dir_load_appstream_store (preferred_dir, remote, arch, mdata, NULL, NULL); app = as_store_find_app (mdata, flatpak_decomposed_get_ref (ref)); if (app) { @@ -267,9 +267,9 @@ flatpak_builtin_remote_info (int argc, char **argv, GCancellable *cancellable, G width = cols - (len + 1); - print_aligned (len, _("ID:"), id); + print_aligned_take (len, _("ID:"), flatpak_decomposed_dup_id (ref)); print_aligned (len, _("Ref:"), flatpak_decomposed_get_ref (ref)); - print_aligned_take (len, _("Arch:"), flatpak_decomposed_dup_arch (ref)); + print_aligned (len, _("Arch:"), arch); print_aligned_take (len, _("Branch:"), flatpak_decomposed_dup_branch (ref)); if (version != NULL) print_aligned (len, _("Version:"), version);