update_versions: fix bug when have > 1 URLs for file

This commit is contained in:
David Anderson 2014-09-19 08:48:19 -07:00
parent efa6f4e3d6
commit 2d99dccc2e
1 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,9 @@ function file_info_xml($fd) {
if (is_array($fd->url)) {
foreach ($fd->url as $url) {
$xml .= " <url>$url</url>\n";
$xml .= " <gzipped_url>$url.gz</gzipped_url>\n";
if ($fd->gzip) {
$xml .= " <gzipped_url>$url.gz</gzipped_url>\n";
}
}
} else {
$xml .= " <url>$fd->url</url>\n";