add validator to restrict the flexibility of LConfig
[lunaix-os.git] / lunaix-os / arch / LConfig
index 78d557a3f856dd691a4f3310e4828fa228c0be4b..bb22a10bc6e42b247e872c263373c8a97855494b 100644 (file)
@@ -8,15 +8,16 @@ def architecture_support():
 
     @flag
     def arch_x86_32() -> bool:
-        return arch.val == "i386"
+        when(arch is "i386")
     
     @flag
     def arch_x86_64() -> bool:
-        return arch.val == "x86_64"
+        when(arch is "x86_64")
     
     @flag
     def arch_x86() -> bool:
-        return arch.val in ["x86_64", "i386"]
+        when(arch is "i386")
+        when(arch is "x86_64")
 
     @"Architecture"
     def arch() -> "i386" | "x86_64":