packages/cli: check for loadable config before wrapping
This commit is contained in:
parent
11125e525f
commit
5951c8c296
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,7 @@ def build(
|
||||||
rebuild_dependants: bool = False,
|
rebuild_dependants: bool = False,
|
||||||
try_download: bool = False,
|
try_download: bool = False,
|
||||||
):
|
):
|
||||||
|
config.enforce_config_loaded()
|
||||||
enforce_wrap()
|
enforce_wrap()
|
||||||
arch = arch or get_profile_device(hint_or_set_arch=True).arch
|
arch = arch or get_profile_device(hint_or_set_arch=True).arch
|
||||||
|
|
||||||
|
@ -202,6 +203,7 @@ def cmd_list():
|
||||||
@click.argument('paths', nargs=-1)
|
@click.argument('paths', nargs=-1)
|
||||||
def cmd_check(paths):
|
def cmd_check(paths):
|
||||||
"""Check that specified PKGBUILDs are formatted correctly"""
|
"""Check that specified PKGBUILDs are formatted correctly"""
|
||||||
|
config.enforce_config_loaded()
|
||||||
check_programs_wrap(['makepkg'])
|
check_programs_wrap(['makepkg'])
|
||||||
|
|
||||||
def check_quoteworthy(s: str) -> bool:
|
def check_quoteworthy(s: str) -> bool:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue