pull: Display download progress of individual objects as we get it

It was kind of annoying at least for rpm-ostree upgrades since /boot
happens to be first and we eat a 21MB initramfs with no download
progress.

https://bugzilla.gnome.org/show_bug.cgi?id=726348
This commit is contained in:
Colin Walters committed 2014-04-11 01:31:14 -04:00
1 parent d4d4ef552d
commit d27c78eab5
2 files changed
+17 -9

No files matched your search

+1
View File
@@ -229,6 +229,7 @@ run_mainloop_monitor_fetcher (OtPullData *pull_data)
if (pull_data->progress)
{
update_timeout = g_timeout_source_new_seconds (1);
g_source_set_priority (update_timeout, G_PRIORITY_HIGH);
g_source_set_callback (update_timeout, update_progress, pull_data, NULL);
g_source_attach (update_timeout, g_main_loop_get_context (pull_data->loop));
g_source_unref (update_timeout);