aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build.rb
diff options
context:
space:
mode:
authorAlex Dunn2016-01-15 10:27:55 -0800
committerAlex Dunn2016-01-20 11:42:36 -0800
commit37e61aed6266e57c55708774743f5ae802bd0aeb (patch)
tree93fb3673846e88a8f9d27246a436811646ee691a /Library/Homebrew/build.rb
parentf9fd2516059ebd3b15629c03af063563f5288dcf (diff)
downloadbrew-37e61aed6266e57c55708774743f5ae802bd0aeb.tar.bz2
build#install: install metafiles in buildpath
This came up in https://github.com/Homebrew/homebrew-emacs/pull/158#issuecomment-172031003; `install_metafiles` is passed the current directory, which can be changed during installation by `Dir.chdir`. There may be cases where the metafiles are in a subdirectory, but my guess is those are rare and this is brittle and undocumented behavior anyway.
Diffstat (limited to 'Library/Homebrew/build.rb')
-rw-r--r--Library/Homebrew/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index f7187e8f3..d898b84e0 100644
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -133,7 +133,7 @@ class Build
Tab.create(formula, ENV.compiler, stdlibs.first, formula.build, formula.source_modified_time).write
# Find and link metafiles
- formula.prefix.install_metafiles Pathname.pwd
+ formula.prefix.install_metafiles formula.buildpath
formula.prefix.install_metafiles formula.libexec if formula.libexec.exist?
end
end