Fix uninstallation of non-formula kegs
Grrr...
This commit is contained in:
parent
ba202df70b
commit
8fbf3a43c3
@ -10,9 +10,9 @@ module Homebrew extend self
|
|||||||
keg.lock do
|
keg.lock do
|
||||||
puts "Uninstalling #{keg}..."
|
puts "Uninstalling #{keg}..."
|
||||||
keg.unlink
|
keg.unlink
|
||||||
Formula.factory(keg.fname).unpin
|
|
||||||
keg.uninstall
|
keg.uninstall
|
||||||
rm_opt_link keg.fname
|
rm_opt_link keg.fname
|
||||||
|
unpin keg.fname
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@ -49,4 +49,7 @@ module Homebrew extend self
|
|||||||
optlink.unlink if optlink.symlink?
|
optlink.unlink if optlink.symlink?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def unpin name
|
||||||
|
Formula.factory(name).unpin rescue nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user