Skip to content
Snippets Groups Projects
Commit a4a2b305 authored by Martin Afanasjew's avatar Martin Afanasjew
Browse files

formula_installer: prefer 'Dependable#run?'

Both `req.tags.include?(:run)` and `req.run?` are currently equivalent,
but the latter relies less on implementation details.
parent f1ac9b57
No related branches found
No related tags found
No related merge requests found
......@@ -286,7 +286,7 @@ class FormulaInstaller
def install_requirement_default_formula?(req, dependent, build)
return false unless req.default_formula?
return true unless req.satisfied?
return false if req.tags.include?(:run)
return false if req.run?
install_bottle_for?(dependent, build) || build_bottle?
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