Parse only $PROJECT_HASH legacy built-in variable

This commit is contained in:
Ivan Kravets committed 2023-12-09 13:06:20 +02:00
1 parent 0f554d2f31
commit 204a60dd52
2 files changed
+6 -6

No files matched your search

+2 -1
View File
@@ -316,10 +316,11 @@ class ProjectConfigBase:
return value
# legacy support for variables delclared without "${}"
legacy_vars = ["PROJECT_HASH"]
stop = False
while not stop:
stop = True
for name in self.BUILTIN_VARS:
for name in legacy_vars:
x = value.find(f"${name}")
if x < 0 or value[x - 1] == "$":
continue