[update-repository] Extract the assets
- Extract the assets from the latest version of each add-on.
- Fix a bug when no versions are configured in the YAML file
- Fix a bug when there are no versions to download
- Move part of the code in functions
Edited by Thomas