diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index 6f3ddc561f..76bc88b0ba 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -921,7 +921,13 @@ def dump_html_pkg(f, pkg): if pkg.cpeid: f.write(" %s\n" % pkg.cpeid) if not pkg.is_status_ok("cpe"): - f.write(" %s%s\n" % ("
" if pkg.cpeid else "", pkg.status['cpe'][1])) + if pkg.cpeid: + f.write("
%s (Search)\n" % # noqa: E501 + (pkg.status['cpe'][1], ":".join(pkg.cpeid.split(":")[0:5]))) + else: + f.write(" %s (Search)\n" % + (pkg.status['cpe'][1], pkg.name)) + f.write(" \n") f.write(" \n")