Merge pull request #1483 from MikeMcQuaid/uninstall-no-kegs-needed-force

uninstall: don't need kegs to exist for --force.
This commit is contained in:
Mike McQuaid 2016-11-11 13:56:05 +00:00 committed by GitHub
commit 0f6cd9d7a5

View File

@ -21,6 +21,7 @@ module Homebrew
kegs_by_rack = if ARGV.force? kegs_by_rack = if ARGV.force?
Hash[ARGV.named.map do |name| Hash[ARGV.named.map do |name|
rack = Formulary.to_rack(name) rack = Formulary.to_rack(name)
next unless rack.directory?
[rack, rack.subdirs.map { |d| Keg.new(d) }] [rack, rack.subdirs.map { |d| Keg.new(d) }]
end] end]
else else