From e314edb736d0fa7e8081b01467bb6a2686432333 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 8 May 2018 22:44:09 +0200 Subject: [PATCH] depot_download: respond to 'installation' changes This patch enables the 'depot_download' subsystem to trigger downloads whenever there is a new version of the 'installation' ROM. --- repos/gems/src/app/depot_download_manager/main.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/repos/gems/src/app/depot_download_manager/main.cc b/repos/gems/src/app/depot_download_manager/main.cc index 5a485a1140..ecdbb1fc57 100644 --- a/repos/gems/src/app/depot_download_manager/main.cc +++ b/repos/gems/src/app/depot_download_manager/main.cc @@ -108,6 +108,15 @@ struct Depot_download_manager::Main _generate_init_config(xml); }); } + void _handle_installation() + { + _installation.update(); + _generate_init_config(); + } + + Signal_handler
_installation_handler { + _env.ep(), *this, &Main::_handle_installation }; + Signal_handler
_query_result_handler { _env.ep(), *this, &Main::_handle_query_result }; @@ -124,6 +133,7 @@ struct Depot_download_manager::Main _current_user.sigh(_query_result_handler); _init_state .sigh(_init_state_handler); _verified .sigh(_init_state_handler); + _installation.sigh(_installation_handler); _generate_init_config(); }