python/build: add support for fallback download URLs

This commit is contained in:
Max Kellermann
2023-09-26 14:14:33 +02:00
parent f6d73555a6
commit eb23788fec
9 changed files with 62 additions and 27 deletions

@ -1,11 +1,11 @@
import subprocess
from typing import Optional
from typing import Optional, Sequence, Union
from build.makeproject import MakeProject
from .toolchain import AnyToolchain
class ZlibProject(MakeProject):
def __init__(self, url: str, md5: str, installed: str,
def __init__(self, url: Union[str, Sequence[str]], md5: str, installed: str,
**kwargs):
MakeProject.__init__(self, url, md5, installed, **kwargs)