Skip to content
Snippets Groups Projects
Commit 69672ca9 authored by Max Howell's avatar Max Howell
Browse files

Speed-up brew-unlink under certain conditions

This massively speeds up upgrades for certain formula, ie. formula with lots of files that aren't in the directories we link. I found upgrading android took ages before the un-tar step and it was indeed for this reason.
parent 05c140e2
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ class Keg < Pathname
def unlink
n=0
Pathname.new(self).find do |src|
%w[bin etc lib include sbin share var].map{ |d| self/d }.each do |src|
next if src == self
dst=HOMEBREW_PREFIX+src.relative_path_from(self)
next unless dst.symlink?
......
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