aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/version.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/version.rb b/Library/Homebrew/version.rb
index be74a2cc7..5dcfced59 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?