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

core: chroot: don't check for ChrootType membership


This check was added as part of the porting efforts where there was a
risk that chroot.__type might not be the right type.

It's broken on Python 3.10, and redundant so let's drop it.

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 #209478 failed
......@@ -50,9 +50,6 @@ class Chroot:
"riscv64",
]
if self.__type not in ChrootType:
raise ValueError(f"Invalid chroot type: '{self.__type}'")
# A buildroot suffix must have a name matching one of alpines
# architectures.
if self.__type == ChrootType.BUILDROOT and self.__name not in valid_arches:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment