forked from Mirror/pmbootstrap
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:
parent
7b14ef597b
commit
9301412f90
2 changed files with 0 additions and 17 deletions
|
@ -66,8 +66,6 @@ def main():
|
||||||
raise RuntimeError("Work path not found, please run 'pmbootstrap"
|
raise RuntimeError("Work path not found, please run 'pmbootstrap"
|
||||||
" init' to create it.")
|
" init' to create it.")
|
||||||
|
|
||||||
other.check_old_devices(args)
|
|
||||||
|
|
||||||
# Migrate work folder if necessary
|
# Migrate work folder if necessary
|
||||||
if args.action not in ["shutdown", "zap", "log"]:
|
if args.action not in ["shutdown", "zap", "log"]:
|
||||||
other.migrate_work_folder(args)
|
other.migrate_work_folder(args)
|
||||||
|
|
|
@ -242,21 +242,6 @@ def migrate_work_folder(args: PmbArgs):
|
||||||
" be lost.")
|
" 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):
|
def validate_hostname(hostname):
|
||||||
"""Check whether the string is a valid hostname.
|
"""Check whether the string is a valid hostname.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue