From f9db6b3227ab0a91676c18e1130387b98e62cd07 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 16 Jul 2013 11:42:11 -0700 Subject: [PATCH] website: fix download parsing --- website/config.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/config.rb b/website/config.rb index 3b3416462..7b031d5ca 100644 --- a/website/config.rb +++ b/website/config.rb @@ -17,7 +17,8 @@ if !ENV["PACKER_DISABLE_DOWNLOAD_FETCH"] response = http.request(req) response.body.split("\n").each do |line| - next if line !~ /\/mitchellh\/packer\/(#{ENV["PACKER_VERSION"]}.+?)\?/ + next if line !~ /\/mitchellh\/packer\/(#{Regexp.quote(ENV["PACKER_VERSION"])}.+?)'/ + p $1.to_s filename = $1.to_s os = filename.split("_")[1] next if os == "SHA256SUMS"