For Ludwig module purpose I would like to implement a hook which downloads and upacks all missing libraries of newly downloaded modules into appropriate module structure.
For that purpose Ludwig needs a hook which can be run when update.php script is initiated but before the actual database update is performed. Something like HOOK_pre_updatedb or similar.
The main point is that new libraries have to be in place before actual database update is performed.