def _update_version_data(self, result, info):
name = info.pop('<STR_LIT:name>')<EOL>version = info.pop('<STR_LIT:version>')<EOL>if version in result:<EOL><INDENT>dist = result[version]<EOL>md = dist.metadata<EOL><DEDENT>else:<EOL><INDENT>dist = make_dist(name, version, scheme=self.scheme)<EOL>md = dist.metadata<EOL><DEDENT>dist.digest = digest = self._get_digest(info)<EOL>url = info['<STR_LIT:url>']<EOL>result['<STR_LIT>'][url] = digest<EOL>if md.source_url != info['<STR_LIT:url>']:<EOL><INDENT>md.source_url = self.prefer_url(md.source_url, url)<EOL>result['<STR_LIT>'].setdefault(version, set()).add(url)<EOL><DEDENT>dist.locator = self<EOL>result[version] = dist<EOL>
Update a result dictionary (the final result from _get_project) with a
dictionary for a specific version, which typically holds information
gleaned from a filename or URL for an archive for the distribution.