aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2016-11-18 13:53:22 +0000
committerGitHub2016-11-18 13:53:22 +0000
commit5e073f1f404f2d2aaf16c30f224bdec91741fba8 (patch)
tree3824577955c031a94fa50873edc7167642aeee7f
parent0e2218807a4ceddc9d351b87e6a5c7e0d1b8a3f2 (diff)
parentb7f0edd1fd7c5f81960a80d8073062451432df7a (diff)
downloadbrew-5e073f1f404f2d2aaf16c30f224bdec91741fba8.tar.bz2
Merge pull request #1528 from MikeMcQuaid/audit-devel-revision
audit: don't check devel version_scheme/revision.
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 08e9a8580..1d4df932f 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -666,21 +666,21 @@ class FormulaAuditor
attributes_map = fv.version_attributes_map(attributes, "origin/master")
- [:stable, :devel].each do |spec|
- attributes.each do |attribute|
- spec_attribute_map = attributes_map[attribute][spec]
- next if spec_attribute_map.nil? || spec_attribute_map.empty?
+ attributes.each do |attribute|
+ stable_attribute_map = attributes_map[attribute][:stable]
+ next if stable_attribute_map.nil? || stable_attribute_map.empty?
- attributes_for_version = spec_attribute_map[formula.version]
- next if attributes_for_version.nil? || attributes_for_version.empty?
+ attributes_for_version = stable_attribute_map[formula.version]
+ next if attributes_for_version.nil? || attributes_for_version.empty?
- old_attribute = formula.send(attribute)
- max_attribute = attributes_for_version.max
- if max_attribute && old_attribute < max_attribute
- problem "#{spec} #{attribute} should not decrease (from #{max_attribute} to #{old_attribute})"
- end
+ old_attribute = formula.send(attribute)
+ max_attribute = attributes_for_version.max
+ if max_attribute && old_attribute < max_attribute
+ problem "#{attribute} should not decrease (from #{max_attribute} to #{old_attribute})"
end
+ end
+ [:stable, :devel].each do |spec|
spec_version_scheme_map = attributes_map[:version_scheme][spec]
next if spec_version_scheme_map.nil? || spec_version_scheme_map.empty?