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 = []
|
provided_arches = []
|
||||||
|
|
||||||
mode_key = '_mode'
|
mode_key = '_mode'
|
||||||
|
nodeps_key = '_nodeps'
|
||||||
pkgbase_key = 'pkgbase'
|
pkgbase_key = 'pkgbase'
|
||||||
pkgname_key = 'pkgname'
|
pkgname_key = 'pkgname'
|
||||||
arches_key = '_arches'
|
arches_key = '_arches'
|
||||||
|
@ -213,6 +214,7 @@ def cmd_check(paths):
|
||||||
sha256sums_key = 'sha256sums'
|
sha256sums_key = 'sha256sums'
|
||||||
required = {
|
required = {
|
||||||
mode_key: True,
|
mode_key: True,
|
||||||
|
nodeps_key: False,
|
||||||
pkgbase_key: False,
|
pkgbase_key: False,
|
||||||
pkgname_key: True,
|
pkgname_key: True,
|
||||||
'pkgdesc': False,
|
'pkgdesc': False,
|
||||||
|
@ -255,7 +257,7 @@ def cmd_check(paths):
|
||||||
line_index += 1
|
line_index += 1
|
||||||
continue
|
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
|
line_index += 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue