Close #194: Aports subfolders! See migration guide in the wiki (#227)

Migration guide:
https://github.com/postmarketOS/pmbootstrap/wiki/Migration-to-aports-subfolders
This commit is contained in:
Oliver Smith 2017-07-28 22:34:40 +00:00 committed by GitHub
parent 6dbf3c7872
commit 314c17e03c
253 changed files with 58 additions and 42 deletions

View file

@ -39,7 +39,7 @@ def list_chroot(args, suffix, remove_prefix=True):
def list_aports(args):
ret = []
prefix = pmb.config.initfs_hook_prefix
for path in glob.glob(args.aports + "/" + prefix + "*"):
for path in glob.glob(args.aports + "/*/" + prefix + "*"):
ret.append(os.path.basename(path)[len(prefix):])
return ret