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.
This commit is contained in:
parent
76ca97b4e7
commit
d4df9d44e0
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user