Skip to content

Commit

Permalink
we need to use the binary package name here
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Mar 28, 2012
1 parent 8b97889 commit 4138747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/download_controller.rb
Expand Up @@ -45,7 +45,7 @@ def package

cache_key = "soo_download_#{@project}_#{@package}"
@data = Rails.cache.fetch(cache_key, :expires_in => 10.minutes) do
api_result = ApiConnect::get("/search/published/binary/id?match=project='#{@project}'+and+package='#{@package}'")
api_result = ApiConnect::get("/search/published/binary/id?match=project='#{@project}'+and+name='#{@package}'")
xpath = "/collection/binary"
if api_result
doc = REXML::Document.new api_result.body
Expand Down

0 comments on commit 4138747

Please sign in to comment.