aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-06-17 16:29:57 -0700
committerAdam Vandenberg2010-06-17 16:35:40 -0700
commitd0962a583d583746f2a81ebdfc6a0beae82212ff (patch)
tree66bdfbb126ccbe3f6b79a92d75ee98c6850ee78d /Library
parent9b1b361451c4a60b09c1fe00b6b14b67a759a239 (diff)
downloadhomebrew-d0962a583d583746f2a81ebdfc6a0beae82212ff.tar.bz2
Bug fix for METAFILES that are actually directories.
If a package contains a folder that has the same name as one of our expected meta files, skip trying to install that folder. (Otherwise we install an empty folder and can get odd permission errors when trying to summarize after install.)
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/install.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb
index cc4be370b..ebd50d588 100755
--- a/Library/Homebrew/install.rb
+++ b/Library/Homebrew/install.rb
@@ -96,6 +96,7 @@ def install f
beginning=Time.now
f.install
FORMULA_META_FILES.each do |file|
+ next if File.directory? file
FileUtils.mv "#{file}.txt", file rescue nil
f.prefix.install file rescue nil
(f.prefix+file).chmod 0644 rescue nil