pmb.helpers: remove check for old device paths (MR 2252)

The migration to the new pmaports device layout was 3 years ago, I think
it's reasonable that this check is no longer needed.
This commit is contained in:
Caleb Connolly 2023-07-11 18:09:33 +01:00 committed by Oliver Smith
parent 7b14ef597b
commit 9301412f90
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 0 additions and 17 deletions

View file

@ -242,21 +242,6 @@ def migrate_work_folder(args: PmbArgs):
" be lost.")
def check_old_devices(args):
"""Check if there are any device ports in device/\\*/APKBUILD.
Devices should be in device/\\*/\\*/APKBUILD (e.g. device/testing/...).
"""
g = glob.glob(args.aports + "/device/*/APKBUILD")
if not g:
return
raise RuntimeError("Found device ports outside device/testing/... "
"Please run 'pmbootstrap pull' and/or move the "
"following device ports to device/testing:\n - " +
'\n - '.join(g))
def validate_hostname(hostname):
"""Check whether the string is a valid hostname.