From 78af4ebce8779e5d2e3297e1a042abe3be2de89b Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 13 Oct 2021 20:32:30 +0200 Subject: [PATCH] Drop pkgbuild pkgname prefix check --- packages.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages.py b/packages.py index 92e6044..77f433e 100644 --- a/packages.py +++ b/packages.py @@ -714,18 +714,6 @@ def cmd_check(paths): hold_key = False 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: required_arches = line.split('=')[1]