diff options
author | Alexander Larsson <alexl@redhat.com> | 2018-12-19 14:32:57 +0100 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-12-19 15:45:35 +0000 |
commit | 9a37475e76d44a7c7d9d5a8861e731abf48a7492 (patch) | |
tree | 712faa6500631e5a44ff728d50eb265c4c63abc4 /app/flatpak-builtins-list.c | |
parent | d925ab396e85022302549d22c3d19fa07a4bf7ce (diff) | |
download | flatpak-9a37475e76d44a7c7d9d5a8861e731abf48a7492.tar.gz |
deploy-data: Prepare for versioning
This adds a version to the deply data format, assuming that if
there is no version then it is 0. Also extends all loaders so that
it can specify a required version, with the goal that most users
are fine with old versions, but if you need more recent we have
a (costly) conversion process to upgrade (will be added later).
The library and the flatpak list/info commands require the most
current version for full info, all other users can use any version.
Also, as part of this we now pass the ref to flatpak_load_deploy_data()
as this will be needed later for the backwards compat support.
Closes: #2409
Approved by: alexlarsson
Diffstat (limited to 'app/flatpak-builtins-list.c')
-rw-r--r-- | app/flatpak-builtins-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/flatpak-builtins-list.c b/app/flatpak-builtins-list.c index 61dc9415..463d8d6a 100644 --- a/app/flatpak-builtins-list.c +++ b/app/flatpak-builtins-list.c @@ -222,7 +222,7 @@ print_table_for_refs (gboolean print_apps, continue; deploy = flatpak_dir_load_deployed (dir, ref, NULL, cancellable, NULL); - deploy_data = flatpak_deploy_get_deploy_data (deploy, cancellable, NULL); + deploy_data = flatpak_deploy_get_deploy_data (deploy, FLATPAK_DEPLOY_VERSION_CURRENT, cancellable, NULL); if (deploy_data == NULL) continue; |