config: add Config.enforce_profile_flavour_set()

This commit is contained in:
InsanePrawn 2022-09-08 17:25:03 +02:00
parent d3cdd64aea
commit 2a20f6c45a
3 changed files with 15 additions and 8 deletions

View file

@ -146,5 +146,5 @@ def get_device(name: str, pkgbuilds: Optional[dict[str, Pkgbuild]] = None, lazy:
def get_profile_device(profile_name: Optional[str] = None, hint_or_set_arch: bool = False):
profile = config.enforce_profile_device_set(profile_name, hint_or_set_arch=hint_or_set_arch)
profile = config.enforce_profile_device_set(profile_name=profile_name, hint_or_set_arch=hint_or_set_arch)
return get_device(profile.device)