Drop pkgbuild pkgname prefix check
This commit is contained in:
parent
0d7259f133
commit
78af4ebce8
1 changed files with 0 additions and 12 deletions
12
packages.py
12
packages.py
|
@ -714,18 +714,6 @@ def cmd_check(paths):
|
||||||
hold_key = False
|
hold_key = False
|
||||||
next_key = True
|
next_key = True
|
||||||
|
|
||||||
if package.repo != 'main':
|
|
||||||
missing_prefix = False
|
|
||||||
if key == pkgbase_key or (key == pkgname_key and required[pkgname_key]):
|
|
||||||
if not line.split('=')[1].startswith(f'{package.repo}-') and not line.split('=')[1].startswith(f'"{package.repo}-'):
|
|
||||||
missing_prefix = True
|
|
||||||
if key == pkgname_key and hold_key and not required[pkgname_key]:
|
|
||||||
if not line[4:].startswith(f'{package.repo}-') and not line[4:].startswith(f'"{package.repo}-'):
|
|
||||||
missing_prefix = True
|
|
||||||
if missing_prefix:
|
|
||||||
formatted = False
|
|
||||||
reason = f'Package name needs to have "{package.repo}-" as prefix'
|
|
||||||
|
|
||||||
if key == arches_key:
|
if key == arches_key:
|
||||||
required_arches = line.split('=')[1]
|
required_arches = line.split('=')[1]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue