summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2018-12-21 09:43:48 +0100
committerAlexander Larsson <alexl@redhat.com>2018-12-21 09:43:48 +0100
commit045001570425132cf355d0c58ef1d657e24e724c (patch)
tree1735b79e080de6d7c8e539765a9bd13156623978
parent6b59406e80f17a5c4df2d437683ea5499f070cde (diff)
downloadflatpak-avoid-unneeded-progress.tar.gz
Drop unneeded progress reportingavoid-unneeded-progress
When pulling the ostree-metadata branch for p2p remotes we passed NULL for progress which caused it to report with the default console progress, which doesn't make any sense for the (small) ostree-metadata branch.
-rw-r--r--common/flatpak-dir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c
index 0c57451f..142c4e73 100644
--- a/common/flatpak-dir.c
+++ b/common/flatpak-dir.c
@@ -11854,6 +11854,7 @@ _flatpak_dir_fetch_remote_state_metadata_branch (FlatpakDir *self,
GCancellable *cancellable,
GError **error)
{
+ g_autoptr(OstreeAsyncProgress) progress = ostree_async_progress_new ();
FlatpakPullFlags flatpak_flags;
gboolean gpg_verify;
g_autofree char *checksum_from_summary = NULL;
@@ -11954,7 +11955,7 @@ _flatpak_dir_fetch_remote_state_metadata_branch (FlatpakDir *self,
child_repo,
flatpak_flags,
OSTREE_REPO_PULL_FLAGS_MIRROR,
- NULL, cancellable, error))
+ progress, cancellable, error))
return FALSE;
if (!child_repo_ensure_summary (child_repo, state, cancellable, error))
@@ -11982,7 +11983,7 @@ _flatpak_dir_fetch_remote_state_metadata_branch (FlatpakDir *self,
if (!flatpak_dir_pull (self, state, OSTREE_REPO_METADATA_REF, NULL, NULL, NULL, NULL,
flatpak_flags, OSTREE_REPO_PULL_FLAGS_NONE,
- NULL, cancellable, error))
+ progress, cancellable, error))
return FALSE;
return TRUE;