Merge pull request #15969 from glensc/patch-1
Fix python: detected_python_shebang python pattern
This commit is contained in:
commit
43295b2637
@ -115,7 +115,7 @@ module Language
|
||||
python_path = if use_python_from_path
|
||||
"/usr/bin/env python3"
|
||||
else
|
||||
python_deps = formula.deps.map(&:name).grep(/^python(@.*)?$/)
|
||||
python_deps = formula.deps.map(&:name).grep(/^python(@.+)?$/)
|
||||
raise ShebangDetectionError.new("Python", "formula does not depend on Python") if python_deps.empty?
|
||||
if python_deps.length > 1
|
||||
raise ShebangDetectionError.new("Python", "formula has multiple Python dependencies")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user