mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
keg: cleanup aliases correctly.
This was missed when I was focused on cleaning up versioned aliases. Fixes #2992.
This commit is contained in:
parent
c26c9204fa
commit
e862bcbc32
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user