aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2016-08-18 12:52:25 +0100
committerMike McQuaid2016-08-18 15:04:51 +0100
commit55ba22e2965a364d17a82796158357b2c6ee6ff2 (patch)
tree331c88455c8a8f879c5fb459dc0de495623ba612 /Library/Homebrew/cmd
parentcc2a90ec8d4dc8b26a7658f4424cf6949d0bf4cb (diff)
downloadbrew-55ba22e2965a364d17a82796158357b2c6ee6ff2.tar.bz2
formula_versions: add version_attributes_map.
This allows querying multiple attributes in the same way as `revision_map` did but without duplicating code or repeatedly traversing history.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index b46f47ab5..3342b1354 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -627,7 +627,7 @@ class FormulaAuditor
return unless formula.tap.git? # git log is required
fv = FormulaVersions.new(formula, :max_depth => 10)
- revision_map = fv.revision_map("origin/master")
+ revision_map = fv.version_attributes_map([:revision], "origin/master")
revisions = revision_map[formula.version]
if !revisions.empty?
problem "revision should not decrease" if formula.revision < revisions.max