I have changed that recently to avoid updating and persisting the registry with every modification during the download data update.
`addDownloadDataToPackage` will iterate over all versions in the second function argument and update the download data accordingly. The tests in the `Add download data` suite should reflect this behavior.