website/www: fix issue where 1.4.0 downloads were showing

This commit is contained in:
Mitchell Hashimoto 2013-12-18 10:10:07 -08:00
parent 7168953ec0
commit 5a173a9380
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ if ENV["VAGRANT_VERSION"]
next if line !~ /\/mitchellh\/vagrant\/(.+?)'/ next if line !~ /\/mitchellh\/vagrant\/(.+?)'/
filename = $1.to_s filename = $1.to_s
$vagrant_os_mappings.each do |suffix, os| $vagrant_os_mappings.each do |suffix, os|
if !filename.include?(ENV["VAGRANT_VERSION"])
next
end
if filename.end_with?(suffix) if filename.end_with?(suffix)
$vagrant_files[os] ||= [] $vagrant_files[os] ||= []
$vagrant_files[os] << filename $vagrant_files[os] << filename