aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonbuild/coredata.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py
index 24580bc..228b6e1 100644
--- a/mesonbuild/coredata.py
+++ b/mesonbuild/coredata.py
@@ -109,11 +109,10 @@ class UserUmaskOption(UserIntegerOption):
def __init__(self, name, description, value, yielding=None):
super().__init__(name, description, 0, 0o777, value, yielding)
- def set_value(self, newvalue):
- if newvalue is None or newvalue == 'preserve':
- self.value = None
- else:
- super().set_value(newvalue)
+ def validate_value(self, value):
+ if value is None or value == 'preserve':
+ return None
+ return super().validate_value(value)
def toint(self, valuestring):
try: