From b8a62d98e114b1af6f1ce7878aa44fa60635870f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 27 Aug 2012 09:44:54 -0500 Subject: [PATCH] audit: fix redundant version check The == comparison was comparing the versions rather than directly comparing the strings, which lead to false positives. Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index aeb59e7ebb..90fc7ceb36 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -219,7 +219,7 @@ class FormulaAuditor else version_text = s.version unless s.version.detected_from_url? version_url = Version.parse(s.url) - if version_url == version_text + if version_url.to_s == version_text.to_s problem "#{spec} version #{version_text} is redundant with version scanned from URL" end end