Skip to content
Snippets Groups Projects
Commit 5a3d6c4c authored by Alyssa Ross's avatar Alyssa Ross
Browse files

uninstall, keg: update style

parent d0ad0970
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,10 @@ module Homebrew
raise KegUnspecifiedError if ARGV.named.empty?
kegs_by_rack = if ARGV.force?
Hash[ARGV.named.map { |name|
Hash[ARGV.named.map do |name|
rack = Formulary.to_rack(name)
[rack, rack.subdirs.map { |d| Keg.new(d) }]
}]
end]
else
ARGV.kegs.group_by(&:rack)
end
......
......@@ -104,9 +104,9 @@ class Keg
# so need them to be calculated now.
#
# This happens after the initial dependency check because it's sloooow.
remaining_formulae = Formula.installed.select { |f|
remaining_formulae = Formula.installed.select do |f|
f.installed_kegs.any? { |k| Tab.for_keg(k).runtime_dependencies.nil? }
}
end
keg_names = kegs.map(&:name)
kegs_by_name = kegs.group_by(&:to_formula)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment