3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-05 14:04:07 +00:00

sby: core: config: Updated the [stage] section to use commas for the parents

This commit is contained in:
Aki Van Ness 2022-07-29 09:28:37 -04:00
parent a0d366e58a
commit f1a645bb18
No known key found for this signature in database
GPG key ID: C629E8EC06327BEE

View file

@ -311,7 +311,7 @@ class SbyConfig:
self.error(f"sby file syntax error: {line}") self.error(f"sby file syntax error: {line}")
continue continue
# [stage <NAME> (PARENTS...)] # [stage <NAME> (PARENTS,...)]
if entries[0] == "stage": if entries[0] == "stage":
mode = "stage" mode = "stage"
if len(entries) > 3 or len(entries) < 2: if len(entries) > 3 or len(entries) < 2:
@ -320,7 +320,7 @@ class SbyConfig:
if len(entries) == 2: if len(entries) == 2:
parent = None parent = None
else: else:
parent = entries[2] parent = entries[2].split(',')
key = entries[1] key = entries[1]