diff --git a/Library/Homebrew/version.rb b/Library/Homebrew/version.rb index be74a2cc73..5dcfced594 100644 --- a/Library/Homebrew/version.rb +++ b/Library/Homebrew/version.rb @@ -197,7 +197,7 @@ class Version def <=>(other) return unless Version === other - return 0 if head? && other.head? + return 0 if version == other.version return 1 if head? && !other.head? return -1 if !head? && other.head?