diff options
| author | Mike McQuaid | 2017-08-07 09:50:56 +0100 |
|---|---|---|
| committer | GitHub | 2017-08-07 09:50:56 +0100 |
| commit | 6a31e02ab247fd93db1adb26ab849e4aac3042c6 (patch) | |
| tree | 164ab2d5ed853926cd70fbe92996fe3f0bffc215 /Library | |
| parent | f57a172cd2177ba4209c4945b0d483e002e01619 (diff) | |
| parent | e862bcbc32a5be45481df0fded949a7dc1b8b43d (diff) | |
| download | brew-6a31e02ab247fd93db1adb26ab849e4aac3042c6.tar.bz2 | |
Merge pull request #3005 from MikeMcQuaid/cleanup-aliases
keg: cleanup aliases correctly.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/keg.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 8fcbecfbd..92eab7ad3 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -253,6 +253,11 @@ class Keg FileUtils.rm_rf bad_tap_opt if bad_tap_opt.directory? end + aliases.each do |a| + alias_symlink = opt/a + alias_symlink.delete if alias_symlink.symlink? || alias_symlink.exist? + end + Pathname.glob("#{opt_record}@*").each do |a| a = a.basename next if aliases.include?(a) |
