Skip to content

Commit

Permalink
tweak debug output during upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Jun 13, 2012
1 parent 10a7632 commit ae28e59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/raury/upgrades.rb
Expand Up @@ -19,12 +19,14 @@ def add_to(plan)
end

if local_results.any?
debug("checking available versions of foreign packages")

each_threaded(local_results) do |local_result|
debug("checking available version for #{local_result}")
result = Rpc.new(:info, local_result.name).call rescue nil

debug("installed: #{local_result}, available: #{result || 'none'}")
if result && result.newer?(local_result)
debug("upgrade available: #{local_result} => #{result}")
debug("adding to build plan: #{local_result} => #{result}")
plan.results << result
end
end
Expand Down

0 comments on commit ae28e59

Please sign in to comment.