Skip to content

Commit

Permalink
libfwupd: Do not export non-introspectable symbols without a version
Browse files Browse the repository at this point in the history
This is needed for future functionality.
  • Loading branch information
hughsie committed Jul 1, 2020
1 parent dc805b4 commit 5c22406
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contrib/generate-version-script.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ def __init__(self, library_name):

def _add_node(self, node):
identifier = node.attrib[XMLNS_C + 'identifier']
if 'version' not in node.attrib:
introspectable = int(node.get('introspectable', 1))
version = node.get('version', None)
if introspectable and not version:
print('No version for', identifier)
sys.exit(1)
if not version:
return None
version = node.attrib['version']
if version not in self.releases:
self.releases[version] = []
Expand Down

0 comments on commit 5c22406

Please sign in to comment.