|
@@ -1010,12 +1010,13 @@ def dump_html_pkg(f, pkg):
|
|
|
if pkg.latest_version['version'] is None:
|
|
|
latest_version_text = "<b>Found, but no version</b>"
|
|
|
else:
|
|
|
- latest_version_text = f"""<a href="https://release-monitoring.org/project/{pkg.latest_version['id']}"><b>{str(pkg.latest_version['version'])}</b></a>"""
|
|
|
+ latest_version_text = f"""<a href="https://release-monitoring.org/project/{pkg.latest_version['id']}">""" \
|
|
|
+ f"""<b>{str(pkg.latest_version['version'])}</b></a>"""
|
|
|
|
|
|
latest_version_text += "<br/>"
|
|
|
|
|
|
if pkg.latest_version['status'] == RM_API_STATUS_FOUND_BY_DISTRO:
|
|
|
- latest_version_text += f'found by <a href="https://release-monitoring.org/distro/Buildroot/">distro</a>'
|
|
|
+ latest_version_text += 'found by <a href="https://release-monitoring.org/distro/Buildroot/">distro</a>'
|
|
|
else:
|
|
|
latest_version_text += "found by guess"
|
|
|
|
|
@@ -1107,9 +1108,11 @@ def dump_html_pkg(f, pkg):
|
|
|
if not pkg.is_status_ok("cpe"):
|
|
|
if pkg.is_actual_package and pkg.current_version:
|
|
|
if pkg.cpeid:
|
|
|
- f.write(f""" <br/>{pkg.status['cpe'][1]} <a href="https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword={":".join(pkg.cpeid.split(":")[0:5])}">(Search)</a>\n""") # noqa: E501
|
|
|
+ f.write(f""" <br/>{pkg.status['cpe'][1]} <a href="https://nvd.nist.gov/products/cpe/search/results?"""
|
|
|
+ f"""namingFormat=2.3&keyword={":".join(pkg.cpeid.split(":")[0:5])}">(Search)</a>\n""")
|
|
|
else:
|
|
|
- f.write(f""" {pkg.status['cpe'][1]} <a href="https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword={pkg.name}">(Search)</a>\n""") # noqa: E501
|
|
|
+ f.write(f""" {pkg.status['cpe'][1]} <a href="https://nvd.nist.gov/products/cpe/search/results?"""
|
|
|
+ f"""namingFormat=2.3&keyword={pkg.name}">(Search)</a>\n""")
|
|
|
else:
|
|
|
f.write(" %s\n" % pkg.status['cpe'][1])
|
|
|
|