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.
This commit is contained in:
Norman Feske 2018-05-08 22:44:09 +02:00 committed by Christian Helmuth
parent 8f102264d3
commit e314edb736
1 changed files with 10 additions and 0 deletions

View File

@ -108,6 +108,15 @@ struct Depot_download_manager::Main
_generate_init_config(xml); });
}
void _handle_installation()
{
_installation.update();
_generate_init_config();
}
Signal_handler<Main> _installation_handler {
_env.ep(), *this, &Main::_handle_installation };
Signal_handler<Main> _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();
}