website: remove packer_ prefix from files for now

This commit is contained in:
Mitchell Hashimoto 2014-09-10 20:52:44 -07:00
parent c5dc0f9e7d
commit f4ca5eb179
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ if !ENV["PACKER_DISABLE_DOWNLOAD_FETCH"]
response = http.request(req) response = http.request(req)
response.body.split("\n").each do |line| response.body.split("\n").each do |line|
next if line !~ /\/mitchellh\/packer\/packer_(#{Regexp.quote(ENV["PACKER_VERSION"])}.+?)'/ next if line !~ /\/mitchellh\/packer\/(#{Regexp.quote(ENV["PACKER_VERSION"])}.+?)'/
filename = $1.to_s filename = $1.to_s
os = filename.split("_")[1] os = filename.split("_")[1]
next if os == "SHA256SUMS" next if os == "SHA256SUMS"
@ -84,7 +84,7 @@ helpers do
end end
def download_url(file) def download_url(file)
"https://dl.bintray.com/mitchellh/packer/packer_#{file}" "https://dl.bintray.com/mitchellh/packer/#{file}"
end end
def latest_version def latest_version

View File

@ -17,7 +17,7 @@ page_title: "Downloads"
Below are all available downloads for the latest version of Packer Below are all available downloads for the latest version of Packer
(<%= latest_version %>). Please download the proper package for your (<%= latest_version %>). Please download the proper package for your
operating system and architecture. You can find SHA256 checksums operating system and architecture. You can find SHA256 checksums
for packages <a href="https://dl.bintray.com/mitchellh/packer/packer_<%= latest_version %>_SHA256SUMS?direct">here</a>. for packages <a href="https://dl.bintray.com/mitchellh/packer/<%= latest_version %>_SHA256SUMS?direct">here</a>.
</p> </p>
</div> </div>
</div> </div>