diff options
| author | Jack Nagel | 2012-07-10 16:10:16 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-18 11:12:09 -0500 |
| commit | e57122780ec3c7dea535ea743930db97c9239037 (patch) | |
| tree | 42b6d6e12037b9619b728cdd53a875a191c97540 /Library/Homebrew/cmd | |
| parent | 329f0a849059d227866d8127f9f72066236c82da (diff) | |
| download | brew-e57122780ec3c7dea535ea743930db97c9239037.tar.bz2 | |
Add Version#detected_from_url?
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 4 |
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 |
