diff options
author | Alexander Larsson <alexl@redhat.com> | 2018-04-10 10:37:20 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-04-12 12:36:49 +0000 |
commit | cc3097ea2782d4e98d2d279c1af4ec887b54bc6c (patch) | |
tree | b022fb845e3a9557037a7e696dfd5f1953c9b9d7 /app/flatpak-builtins-info.c | |
parent | 327ed39833c63b4add32cd7dab73777351aab0e5 (diff) | |
download | flatpak-cc3097ea2782d4e98d2d279c1af4ec887b54bc6c.tar.gz |
info: Add end-of-life status
Closes: #1566
Approved by: alexlarsson
Diffstat (limited to 'app/flatpak-builtins-info.c')
-rw-r--r-- | app/flatpak-builtins-info.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; |