Use Dependency#option_name in BuildOptions#add_dep_option
This commit is contained in:
parent
c6bc01ab58
commit
938110961d
@ -33,7 +33,7 @@ class BuildOptions
|
|||||||
end
|
end
|
||||||
|
|
||||||
def add_dep_option(dep)
|
def add_dep_option(dep)
|
||||||
name = dep.name.split("/").last # strip any tap prefix
|
name = dep.option_name
|
||||||
if dep.optional? && !has_option?("with-#{name}")
|
if dep.optional? && !has_option?("with-#{name}")
|
||||||
add("with-#{name}", "Build with #{name} support")
|
add("with-#{name}", "Build with #{name} support")
|
||||||
elsif dep.recommended? && !has_option?("without-#{name}")
|
elsif dep.recommended? && !has_option?("without-#{name}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user