Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
OCI: Fix progress reporting
Somewhere during the progress reporting cleanup we lost the progress
for OCI pulls, this puts it back.

(cherry picked from commit 7622aab)
  • Loading branch information
alexlarsson committed Nov 17, 2020
1 parent be00050 commit 4e47dba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/flatpak-progress.c
Expand Up @@ -428,6 +428,7 @@ flatpak_progress_update_oci_pull (FlatpakProgress *self,
if (self == NULL)
return;

self->requested = n_layers; /* Need to set this to trigger start of progress reporting, see update_status_progress_and_estimating() */
self->outstanding_fetches = n_layers - pulled_layers;
self->fetched_delta_parts = pulled_layers;
self->total_delta_parts = n_layers;
Expand All @@ -438,6 +439,8 @@ flatpak_progress_update_oci_pull (FlatpakProgress *self,
self->total_delta_part_usize = total_size;
self->total_delta_superblocks = 0;
update_status_progress_and_estimating (self);

self->callback (self->status, self->progress, self->estimating, self->user_data);
}

guint32
Expand Down

0 comments on commit 4e47dba

Please sign in to comment.