diff options
author | Matthew Leeds <matthew.leeds@endlessm.com> | 2018-02-12 19:10:05 -0800 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-13 14:46:47 +0000 |
commit | c5ab9e22b5666229058a5c7c92b47698f3e89cfc (patch) | |
tree | 56b4b8a0713817b2cc2b19cfc8c5d4480e055a1d /common/flatpak-dir.h | |
parent | e95d3763fed38e663549808127af5dc2f48bb033 (diff) | |
download | flatpak-c5ab9e22b5666229058a5c7c92b47698f3e89cfc.tar.gz |
dir: Check for appstream updates using P2P code
This commit breaks out the code in flatpak_dir_check_for_update() that
finds the latest revision of a ref into its own function and uses it in
flatpak_dir_check_for_appstream_update(). This allows appstream updates
to work even for offline machines.
Fixes https://github.com/flatpak/flatpak/issues/1404
Closes: #1397
Approved by: alexlarsson
Diffstat (limited to 'common/flatpak-dir.h')
-rw-r--r-- | common/flatpak-dir.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/flatpak-dir.h b/common/flatpak-dir.h index d78e54aa..1964a650 100644 --- a/common/flatpak-dir.h +++ b/common/flatpak-dir.h @@ -343,6 +343,13 @@ gboolean flatpak_dir_deploy_appstream (FlatpakDir *self, gboolean *out_changed, GCancellable *cancellable, GError **error); +gboolean flatpak_dir_find_latest_rev (FlatpakDir *self, + const char *remote, + const char *ref, + char **out_rev, + OstreeRepoFinderResult ***out_results, + GCancellable *cancellable, + GError **error); gboolean flatpak_dir_check_for_appstream_update (FlatpakDir *self, const char *remote, const char *arch); |