Browse files

tweak debug output during upgrades

  • Loading branch information...
1 parent 10a7632 commit ae28e59c3aaaff13cf3376fc5930c2fdc6944d4f @pbrisbin committed Jun 13, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/raury/upgrades.rb
View
6 lib/raury/upgrades.rb
@@ -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

0 comments on commit ae28e59

Please sign in to comment.