diff options
| author | Jack Nagel | 2012-08-27 09:44:54 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-27 09:44:54 -0500 |
| commit | b8a62d98e114b1af6f1ce7878aa44fa60635870f (patch) | |
| tree | 490aeeab66d2c7aa46bbc2114a2108752d187586 /Library/Homebrew/cmd | |
| parent | dfd35db4d178df264e14222be51667f255cd5c81 (diff) | |
| download | brew-b8a62d98e114b1af6f1ce7878aa44fa60635870f.tar.bz2 | |
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 <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index aeb59e7eb..90fc7ceb3 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 |
