diff options
| author | Jack Nagel | 2013-05-14 20:13:49 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-05-14 20:17:00 -0500 |
| commit | 4bcb452d72480c08c69a2d71f787faf386060ab8 (patch) | |
| tree | 37f10192dd758726c008d92ab905bc377612cc98 /Library | |
| parent | 8f828806ccdc3f46aa19c5b84363f5bb46557ab0 (diff) | |
| download | homebrew-4bcb452d72480c08c69a2d71f787faf386060ab8.tar.bz2 | |
audit: fix version audit for Version subclasses
The version isn't redundant if a subclass of Version is specified.
Diffstat (limited to 'Library')
| -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 d73d2f714..953dc6459 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -273,7 +273,7 @@ class FormulaAuditor else version_text = s.version unless s.version.detected_from_url? version_url = Version.parse(s.url) - if version_url.to_s == version_text.to_s + if version_url.to_s == version_text.to_s && s.version.instance_of?(Version) problem "#{spec} version #{version_text} is redundant with version scanned from URL" end end |
