Skip to content

Commit ac93b67

Browse files
antoniovazquezblancoburrbull
authored andcommitted
svdtools/patch: Fix bug when _include is a single item.
1 parent ecf8de9 commit ac93b67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

svdtools/patch.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ def yaml_includes(parent):
133133
if not pspec.startswith("_") and "_include" in parent[pspec]:
134134
parent[pspec]["_path"] = parent["_path"]
135135
included += yaml_includes(parent[pspec])
136-
for relpath in parent.get("_include", []):
136+
include = parent.get("_include", [])
137+
if isinstance(include, str):
138+
include = [include]
139+
for relpath in include:
137140
path = abspath(parent["_path"], relpath)
138141
if path in included:
139142
continue

0 commit comments

Comments
 (0)