mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-23 04:25:10 +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
|
@ -19,7 +19,7 @@ def from_chroot_suffix(args: PmbArgs, chroot: Chroot) -> str:
|
|||
return pmb.config.arch_native
|
||||
if chroot.name() == args.device:
|
||||
return args.deviceinfo["arch"]
|
||||
if chroot.type() == ChrootType.BUILDROOT:
|
||||
if chroot.type == ChrootType.BUILDROOT:
|
||||
return chroot.name()
|
||||
|
||||
raise ValueError(f"Invalid chroot suffix: {chroot}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue