aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-07 22:15:29 -0700
committerAdam Vandenberg2010-08-07 22:15:29 -0700
commite2f0e1a26f31f494ec6b972d0e525b3cf9a6d3c9 (patch)
tree1b22091ed329a4172a3169876d3ceb428eadd9d8 /bin
parent612af6b4fe763346614316f8d7e3b5b1bc69cfda (diff)
downloadbrew-e2f0e1a26f31f494ec6b972d0e525b3cf9a6d3c9.tar.bz2
Resolve aliases in 'brew edit'.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/brew b/bin/brew
index 93854270d..135332d32 100755
--- a/bin/brew
+++ b/bin/brew
@@ -152,9 +152,10 @@ begin
"#{HOMEBREW_REPOSITORY}/bin/brew"<<
"#{HOMEBREW_REPOSITORY}/README.md"
else
- # we don't use ARGV.formulae as that will throw if the file doesn't parse
+ # Don't use ARGV.formulae as that will throw if the file doesn't parse
paths = ARGV.named.collect do |name|
- unless File.exist? path = "#{HOMEBREW_REPOSITORY}/Library/Formula/#{name}.rb"
+ path = "#{HOMEBREW_REPOSITORY}/Library/Formula/#{ARGV.resolve_alias(name)}.rb"
+ unless File.exist? path
require 'formula'
raise FormulaUnavailableError, name
else