Skip to content
Snippets Groups Projects
Commit e26ab925 authored by ilovezfs's avatar ilovezfs Committed by GitHub
Browse files

Merge pull request #2085 from MikeMcQuaid/keg-handle-missing-alias-link

keg: handle missing alias opt link on uninstall.
parents ebb2b3aa 1ea79cd0
No related branches found
No related tags found
No related merge requests found
......@@ -239,7 +239,10 @@ class Keg
def remove_opt_record
opt_record.unlink
aliases.each { |a| (opt_record.parent/a).unlink }
aliases.each do |a|
next if !opt_record.symlink? && !opt_record.exist?
(opt_record.parent/a).delete
end
opt_record.parent.rmdir_if_possible
end
......
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