Push keg_only special-case into link

This commit is contained in:
Jack Nagel 2014-07-24 19:39:09 -05:00
parent f1fc0b788f
commit 07bf57b8ea

View File

@ -409,18 +409,7 @@ class FormulaInstaller
install_plist
keg = Keg.new(f.prefix)
if f.keg_only?
begin
keg.optlink
rescue Exception
onoe "Failed to create: #{f.opt_prefix}"
puts "Things that depend on #{f} will probably not build."
end
else
link(keg)
end
fix_install_names(keg) if OS.mac?
post_install
@ -547,6 +536,16 @@ class FormulaInstaller
end
def link(keg)
if f.keg_only?
begin
keg.optlink
rescue Exception
onoe "Failed to create: #{f.opt_prefix}"
puts "Things that depend on #{f} will probably not build."
end
return
end
if keg.linked?
opoo "This keg was marked linked already, continuing anyway"
keg.remove_linked_keg_record