generator.py: use constants.Arch type

This commit is contained in:
InsanePrawn 2022-02-06 19:20:54 +01:00
parent 61c150843e
commit 050f73c90c

View file

@ -1,8 +1,8 @@
from constants import GCC_HOSTSPECS, CFLAGS_GENERAL, CFLAGS_ARCHES, COMPILE_ARCHES
from constants import Arch, GCC_HOSTSPECS, CFLAGS_GENERAL, CFLAGS_ARCHES, COMPILE_ARCHES
from config import config
def generate_makepkg_conf(arch: str, cross: bool = False, chroot: str = None) -> str:
def generate_makepkg_conf(arch: Arch, cross: bool = False, chroot: str = None) -> str:
"""
Generate a makepkg.conf. For use with crosscompiling, specify `cross=True` and pass as `chroot`
the relative path inside the native chroot where the foreign chroot will be mounted.