From 050f73c90c48936dbc07b17010f5850a066cb5e8 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Sun, 6 Feb 2022 19:20:54 +0100 Subject: [PATCH] generator.py: use constants.Arch type --- generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator.py b/generator.py index aac8b29..3de7538 100644 --- a/generator.py +++ b/generator.py @@ -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.