diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 6dc206d2bc..a4bb5ae599 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -828,7 +828,7 @@ function sortGrid(sortLabel){
Results
-"""
+""" # noqa - tabs and spaces
html_footer = """
@@ -865,8 +865,8 @@ def boolean_str(b):
def dump_html_pkg(f, pkg):
- f.write( f'{pkg.path}
\n')
+ f.write(f'{pkg.path}
\n')
# Patch count
data_field_id = f'patch_count_{pkg.name}'
div_class = ["centered patch_count data"]
@@ -877,8 +877,8 @@ def dump_html_pkg(f, pkg):
div_class.append("somepatches")
else:
div_class.append("lotsofpatches")
- f.write( f' {str(pkg.patch_count)}
\n')
+ f.write(f' {str(pkg.patch_count)}
\n')
# Infrastructure
data_field_id = f'infrastructure_{pkg.name}'
@@ -889,8 +889,8 @@ def dump_html_pkg(f, pkg):
div_class.append("wrong")
else:
div_class.append("correct")
- f.write( f' {infra_str(pkg.infras)}
\n')
+ f.write(f' {infra_str(pkg.infras)}
\n')
# License
data_field_id = f'license_{pkg.name}'
@@ -901,7 +901,7 @@ def dump_html_pkg(f, pkg):
else:
div_class.append("wrong")
f.write(f' {boolean_str(pkg.is_status_ok("license"))}
\n')
+ \">{boolean_str(pkg.is_status_ok("license"))}\n')
# License files
data_field_id = f'license_files_{pkg.name}'
@@ -912,7 +912,7 @@ def dump_html_pkg(f, pkg):
else:
div_class.append("wrong")
f.write(f' {boolean_str(pkg.is_status_ok("license-files"))}
\n')
+ \">{boolean_str(pkg.is_status_ok("license-files"))}\n')
# Hash
data_field_id = f'hash_file_{pkg.name}'
@@ -923,7 +923,7 @@ def dump_html_pkg(f, pkg):
else:
div_class.append("wrong")
f.write(f' {boolean_str(pkg.is_status_ok("hash"))}
\n')
+ \">{boolean_str(pkg.is_status_ok("hash"))}\n')
# Current version
data_field_id = f'current_version_{pkg.name}'
@@ -932,7 +932,7 @@ def dump_html_pkg(f, pkg):
else:
current_version = pkg.current_version
f.write(f' {current_version}
\n')
+ class=\"centered current_version data {pkg.name}\">{current_version}\n')
# Latest version
data_field_id = f'latest_version_{pkg.name}'
@@ -1059,19 +1059,32 @@ def dump_html_pkg(f, pkg):
def dump_html_all_pkgs(f, packages):
f.write("""
-
Package
-
Patch count
-
Infrastructure
-
License
-
License files
-
Hash file
-
Current version
-
Latest version
-
Warnings
-
Upstream URL
-
CVEs
-
CVEs Ignored
-
CPE ID
+
Package
+
Patch count
+
Infrastructure
+
License
+
License files
+
Hash file
+
Current version
+
Latest version
+
Warnings
+
Upstream URL
+
CVEs
+
CVEs Ignored
+
CPE ID
""")
for pkg in sorted(packages):
dump_html_pkg(f, pkg)