Skip to content
Snippets Groups Projects
Unverified Commit e8b0f527 authored by Casey's avatar Casey :recycle:
Browse files

core: chroot: make ChrootType membership check work on python 3.10


You can't check enum membership with __contains__() on Python 3.10, poke
inside the enum instead.

Signed-off-by: default avatarCaleb Connolly <caleb@postmarketos.org>
parent 0386ffc0
No related branches found
No related tags found
No related merge requests found
Pipeline #209482 failed
......@@ -50,7 +50,7 @@ class Chroot:
"riscv64",
]
if self.__type not in ChrootType:
if self.__type not in ChrootType._member_map_.values():
raise ValueError(f"Invalid chroot type: '{self.__type}'")
# A buildroot suffix must have a name matching one of alpines
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment