Only check keg-only if we map to a formula
This commit is contained in:
parent
40c339e349
commit
0dec35e7b0
@ -35,11 +35,15 @@ module Homebrew extend self
|
|||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
f = Formula.factory(keg.fname)
|
begin
|
||||||
if f.keg_only? and not ARGV.force?
|
f = Formula.factory(keg.fname)
|
||||||
opoo "#{keg.fname} is keg-only and must be linked with --force"
|
if f.keg_only? and not ARGV.force?
|
||||||
puts "Note that doing so can interfere with building software."
|
opoo "#{keg.fname} is keg-only and must be linked with --force"
|
||||||
next
|
puts "Note that doing so can interfere with building software."
|
||||||
|
next
|
||||||
|
end
|
||||||
|
rescue
|
||||||
|
# Nothing to see here
|
||||||
end
|
end
|
||||||
|
|
||||||
keg.lock do
|
keg.lock do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user