aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2012-07-10 16:10:16 -0500
committerJack Nagel2012-08-18 11:12:09 -0500
commit9e80ec2c11c36ce99b53910a4340d2905b8a2d18 (patch)
tree44c9de3c5e2e5bdd5888cd4ea7a7d796b482e7c3 /Library/Homebrew/cmd
parent4affbabfb7aef915f716531ad0a39eff04ff9933 (diff)
downloadhomebrew-9e80ec2c11c36ce99b53910a4340d2905b8a2d18.tar.bz2
Add Version#detected_from_url?
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index bb3a538a4..0494f4c3f 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -217,8 +217,8 @@ class FormulaAuditor
if s.version.to_s.empty?
problem "Invalid or missing #{spec} version"
else
- version_text = s.version if s.explicit_version?
- version_url = Pathname.new(s.url).version
+ version_text = s.version unless s.version.detected_from_url?
+ version_url = Version.parse(s.url)
if version_url == version_text
problem "#{spec} version #{version_text} is redundant with version scanned from URL"
end