if (report.getDownloadStatus() == DownloadStatus.FAILED) {
return null;
}
InputStream in = new FileInputStream(report.getLocalFile());
try {
UpdateSite site = EclipseUpdateSiteParser.parse(in);
site.setUri(normalizeSiteUri(site.getUri(), siteUri));
return site;
} finally {
in.close();
}
}