From 2d99dccc2e2d73fa2e5ec4406ef8b9a393b36710 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 19 Sep 2014 08:48:19 -0700 Subject: [PATCH] update_versions: fix bug when have > 1 URLs for file --- tools/update_versions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/update_versions b/tools/update_versions index 5249f0346c..a753599926 100755 --- a/tools/update_versions +++ b/tools/update_versions @@ -89,7 +89,9 @@ function file_info_xml($fd) { if (is_array($fd->url)) { foreach ($fd->url as $url) { $xml .= " $url\n"; - $xml .= " $url.gz\n"; + if ($fd->gzip) { + $xml .= " $url.gz\n"; + } } } else { $xml .= " $fd->url\n";