mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 03:19:47 +03:00
pmb.core.chroot: make type a property (MR 2252)
Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
1d5eda75b5
commit
2d232200f8
4 changed files with 4 additions and 4 deletions
|
@ -161,7 +161,7 @@ def chroot(args: PmbArgs):
|
|||
# Suffix
|
||||
suffix = _parse_suffix(args)
|
||||
if (args.user and suffix != Chroot.native() and
|
||||
not suffix.type() == ChrootType.BUILDROOT):
|
||||
not suffix.type == ChrootType.BUILDROOT):
|
||||
raise RuntimeError("--user is only supported for native or"
|
||||
" buildroot_* chroots.")
|
||||
if args.xauth and suffix != Chroot.native():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue