mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 13:45:45 -05:00
packages/cli: cmd_check(): reindent and add _nodeps= key
This commit is contained in:
parent
939683f079
commit
cac150d11b
1 changed files with 85 additions and 83 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue