Skip to content

Commit

Permalink
Merge pull request #2 from renchap/master
Browse files Browse the repository at this point in the history
Fix versions comparaison
  • Loading branch information
Nicolas Szalay committed Nov 16, 2011
2 parents 6df6504 + fe70be5 commit 685bdd3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions consistency.rb
Expand Up @@ -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

Expand Down

0 comments on commit 685bdd3

Please sign in to comment.