Simplify cleanup eligibility check
This commit is contained in:
parent
703de5556f
commit
505d06c176
@ -124,12 +124,9 @@ class Formula
|
|||||||
true
|
true
|
||||||
elsif opt_prefix.directory?
|
elsif opt_prefix.directory?
|
||||||
# SHA records were added to INSTALL_RECEIPTS the same day as opt symlinks
|
# SHA records were added to INSTALL_RECEIPTS the same day as opt symlinks
|
||||||
!Formula.installed.
|
Formula.installed.
|
||||||
select{ |ff| ff.deps.map{ |d| d.to_s }.include? name }.
|
select { |f| f.deps.any? { |d| d.name == name } }.
|
||||||
map{ |ff| ff.rack.subdirs rescue [] }.
|
all? { |f| f.rack.subdirs.all? { |keg| Tab.for_keg(keg).HEAD } }
|
||||||
flatten.
|
|
||||||
map{ |keg_path| Tab.for_keg(keg_path).HEAD }.
|
|
||||||
include? nil
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user