aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorNaoto Kaneko2017-02-23 16:49:14 +0900
committerNaoto Kaneko2017-02-23 16:49:14 +0900
commitd4df9d44e09df6197275113b266df2b7d51a0339 (patch)
treea78ee3b5fa0f7687b73d3ce7f22876696aee8d14 /Library/Homebrew
parent76ca97b4e73bf54dc98439ac3921cf27383722e2 (diff)
downloadbrew-d4df9d44e09df6197275113b266df2b7d51a0339.tar.bz2
Exclude executables from metafiles
Exclude executables in #empty_installation? to avoid 'Empty Installation' error when only executable which name is the same as one of metafiles is installed.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/keg.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index 94e3ff55b..9849a291e 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -208,6 +208,7 @@ class Keg
def empty_installation?
Pathname.glob("#{path}/**/*") do |file|
+ return false if file.executable?
next if file.directory?
basename = file.basename.to_s
next if Metafiles.copy?(basename)