aboutsummaryrefslogtreecommitdiffhomepage
path: root/registry/reg.py
diff options
context:
space:
mode:
Diffstat (limited to 'registry/reg.py')
-rw-r--r--registry/reg.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/registry/reg.py b/registry/reg.py
index 2d51f1f..30a661a 100644
--- a/registry/reg.py
+++ b/registry/reg.py
@@ -134,8 +134,10 @@ def mergeAPIs(tree, fromApiNames, toApiName):
definitionName = child.get('name')
definitionVariants = parent.findall(f"{child.tag}[@name='{definitionName}']")
elif child.tag in ['require']:
- definitionName = child.get('feature')
- definitionVariants = parent.findall(f"{child.tag}[@feature='{definitionName}']")
+ # No way to correlate require tags because they do not have a definite identifier in the way they
+ # are used in the latest forms of the XML so the best we can do is simply enable all of them
+ if child.get('api') in fromApiNames:
+ child.set('api', toApiName)
elif child.tag in ['command']:
definitionName = child.find('proto/name').text
definitionVariants = parent.findall(f"{child.tag}/proto/name[.='{definitionName}']/../..")