Skip to content

Commit

Permalink
Use format string
Browse files Browse the repository at this point in the history
  • Loading branch information
Honny1 committed Mar 4, 2024
1 parent 7b1237f commit 4ee07e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-scripts/cpe_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ def main():
product_yaml = ssg.products.load_product_yaml(args.product_yaml)
product = product_yaml["product"]

oval_filename = args.idname + "-" + product + "-" + os.path.basename(args.ovalfile)
oval_filename = "{}-{}-{}".format(args.idname, product, os.path.basename(args.ovalfile))
oval_filename = oval_filename.replace("cpe-oval-unlinked", "cpe-oval")
oval_file_path = os.path.join(args.cpeoutdir, oval_filename)

cpe_dict_filename = "ssg-" + product + "-cpe-dictionary.xml"
cpe_dict_filename = "ssg-{}-cpe-dictionary.xml".format(product)
cpe_dict_path = os.path.join(args.cpeoutdir, cpe_dict_filename)

oval_document = load_oval(args)
Expand Down

0 comments on commit 4ee07e0

Please sign in to comment.