Return a tuple from get_buildsystem.
This commit is contained in:
parent
57746c8352
commit
3d0519d83e
1 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from typing import Optional
|
from typing import Optional, Tuple
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from . import shebang_binary, UnidentifiedError
|
from . import shebang_binary, UnidentifiedError
|
||||||
|
@ -1031,8 +1031,8 @@ def detect_buildsystems(path):
|
||||||
yield bs
|
yield bs
|
||||||
|
|
||||||
|
|
||||||
def get_buildsystem(path):
|
def get_buildsystem(path: str) -> Tuple[str, BuildSystem]:
|
||||||
for buildsystem in detect_buildsystems(path):
|
for subpath, buildsystem in scan_buildsystems(path):
|
||||||
return buildsystem
|
return subpath, buildsystem
|
||||||
|
|
||||||
raise NoBuildToolsFound()
|
raise NoBuildToolsFound()
|
||||||
|
|
Loading…
Add table
Reference in a new issue