From d49c6d675e776943a14469afd8d3c3c60fcd51d3 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 17 Jun 2010 16:29:57 -0700 Subject: [PATCH] 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.) --- Library/Homebrew/install.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index cc4be370ba..ebd50d588b 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