From d4df9d44e09df6197275113b266df2b7d51a0339 Mon Sep 17 00:00:00 2001 From: Naoto Kaneko Date: Thu, 23 Feb 2017 16:49:14 +0900 Subject: [PATCH] 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. --- Library/Homebrew/keg.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 94e3ff55bf..9849a291ee 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)