Browse files

Dont compare versions, but only check if they are equals

  • Loading branch information...
1 parent 76414be commit fe70be5ad6e29127407fbccc72bee236ccbd0afc @renchap renchap committed Nov 16, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 consistency.rb
View
7 consistency.rb
@@ -38,24 +38,23 @@ def run
next
end
- if target_versions[name] < cb_version then
+ if target_versions[name] != cb_version then
puts "cookbook \"#{name}\" is not up to date. latest is #{cb_version}, #{@environment} has version #{target_versions[name]}"
end
end
-
when "local"
local_versions = get_local_versions()
latest_versions = get_latest_versions()
-
+
latest_versions.each_pair do |name, cb_version|
unless local_versions.has_key?(name)
puts "cookbook \"#{name}\" has no local candidate version"
next
end
- if local_versions[name] < cb_version then
+ if local_versions[name] != cb_version then
puts "cookbook \"#{name}\" is not up to date. latest is #{cb_version}, local version is #{local_versions[name]}"
end

0 comments on commit fe70be5

Please sign in to comment.