packages/cli: cmd_check(): reindent and add _nodeps= key

This commit is contained in:
InsanePrawn 2022-09-20 18:33:50 +02:00
parent 939683f079
commit cac150d11b

View file

@ -204,6 +204,7 @@ def cmd_check(paths):
provided_arches = []
mode_key = '_mode'
nodeps_key = '_nodeps'
pkgbase_key = 'pkgbase'
pkgname_key = 'pkgname'
arches_key = '_arches'
@ -213,6 +214,7 @@ def cmd_check(paths):
sha256sums_key = 'sha256sums'
required = {
mode_key: True,
nodeps_key: False,
pkgbase_key: False,
pkgname_key: True,
'pkgdesc': False,
@ -255,7 +257,7 @@ def cmd_check(paths):
line_index += 1
continue
if line.startswith('_') and not line.startswith(mode_key) and not line.startswith(arches_key) and not line.startswith(commit_key):
if line.startswith('_') and line.split('=', 1)[0] not in [mode_key, nodeps_key, arches_key, commit_key]:
line_index += 1
continue