From cc3097ea2782d4e98d2d279c1af4ec887b54bc6c Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 10 Apr 2018 10:37:20 +0200 Subject: [PATCH] info: Add end-of-life status Closes: #1566 Approved by: alexlarsson --- app/flatpak-builtins-info.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/flatpak-builtins-info.c b/app/flatpak-builtins-info.c index d3c721c4..ed17294c 100644 --- a/app/flatpak-builtins-info.c +++ b/app/flatpak-builtins-info.c @@ -100,6 +100,8 @@ flatpak_builtin_info (int argc, char **argv, GCancellable *cancellable, GError * g_autoptr(GKeyFile) metakey = NULL; const char *commit = NULL; const char *alt_id = NULL; + const char *eol; + const char *eol_rebase; const char *pref = NULL; const char *default_branch = NULL; const char *origin = NULL; @@ -165,6 +167,8 @@ flatpak_builtin_info (int argc, char **argv, GCancellable *cancellable, GError * formatted = g_format_size (size); path = g_file_get_path (flatpak_deploy_get_dir (deploy)); subpaths = flatpak_deploy_data_get_subpaths (deploy_data); + eol = flatpak_deploy_data_get_eol (deploy_data); + eol_rebase = flatpak_deploy_data_get_eol_rebase (deploy_data); metakey = flatpak_deploy_get_metadata (deploy); @@ -230,6 +234,10 @@ flatpak_builtin_info (int argc, char **argv, GCancellable *cancellable, GError * g_print ("%s%s%s %s\n", on, _("Parent:"), off, parent ? parent : "-"); g_print ("%s%s%s %s\n", on, _("Location:"), off, path); g_print ("%s%s%s %s\n", on, _("Installed size:"), off, formatted); + if (eol) + g_print ("%s%s%s %s\n", on, _("end-of-life:"), off, eol); + if (eol_rebase) + g_print ("%s%s%s %s\n", on, _("end-of-life-rebase:"), off, eol_rebase); if (strcmp (parts[0], "app") == 0) { g_autofree char *runtime = NULL;