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 /system-helper | |
| 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 'system-helper')
| -rw-r--r-- | system-helper/flatpak-system-helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system-helper/flatpak-system-helper.c b/system-helper/flatpak-system-helper.c index 95211de7..ebab4071 100644 --- a/system-helper/flatpak-system-helper.c +++ b/system-helper/flatpak-system-helper.c @@ -1256,7 +1256,7 @@ dir_ref_is_installed (FlatpakDir *dir, { g_autoptr(GVariant) deploy_data = NULL; - deploy_data = flatpak_dir_get_deploy_data (dir, ref, NULL, NULL); + deploy_data = flatpak_dir_get_deploy_data (dir, ref, FLATPAK_DEPLOY_VERSION_ANY, NULL, NULL); return deploy_data != NULL; } |
