diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index 91d42206ca..d32abd7225 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -1102,7 +1102,9 @@ def dump_html_pkg(f, pkg): div_class.append("cpe-unknown") f.write(f'
%s
\n" % pkg.cpeid)
+ cpeid_begin = ":".join(pkg.cpeid.split(":")[0:4]) + ":"
+ cpeid_formatted = pkg.cpeid.replace(cpeid_begin, cpeid_begin + "%s
\n" % cpeid_formatted)
if not pkg.is_status_ok("cpe"):
if pkg.is_actual_package and pkg.current_version:
if pkg.cpeid: