forked from Mirror/pmbootstrap
drop args from helpers.git and chroot.apk (MR 2252)
be gone! Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
52338c5e76
commit
1be8653935
17 changed files with 85 additions and 70 deletions
|
@ -13,7 +13,7 @@ from pmb.core.types import PmbArgs
|
|||
def list_chroot(args: PmbArgs, suffix: Chroot, remove_prefix=True):
|
||||
ret = []
|
||||
prefix = pmb.config.initfs_hook_prefix
|
||||
for pkgname in pmb.chroot.apk.installed(args, suffix).keys():
|
||||
for pkgname in pmb.chroot.apk.installed(suffix).keys():
|
||||
if pkgname.startswith(prefix):
|
||||
if remove_prefix:
|
||||
ret.append(pkgname[len(prefix):])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue