Skip to content

Commit

Permalink
change way of getting a CPEALFactref name
Browse files Browse the repository at this point in the history
this breaks build now, but it reliably demonstrates the problem which needs to be fixed - handling of underscores in platform names
  • Loading branch information
vojtapolasek committed Feb 1, 2022
1 parent 473f17a commit 9d89407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssg/build_cpe.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def __init__(self, expression, algebra, cpe_products):

def _replace_cpe_names(self, exp):
if isinstance(exp, CPEALFactRef):
exp.cpe_name = self.cpe_products.get_cpe_name(str(exp.obj))
exp.cpe_name = self.cpe_products.get_cpe_name(exp.name)
else:
for arg in exp.args:
self._replace_cpe_names(arg)
Expand Down

0 comments on commit 9d89407

Please sign in to comment.