1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: Ignore dist-info with the missing metadata
Python debian helper strips duplicate metadata, so
a version-specific dist-info may not have it available.
Author: Vladimir Petko <vladimir.petko@canonical.com>
Bug: https://github.com/banesullivan/scooby/issues/144
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/python-scooby/+bug/2143273
Last-Update: 2026-03-05
--- a/scooby/report.py
+++ b/scooby/report.py
@@ -238,7 +238,7 @@
"""
# sort case-insensitively by name
installed = sorted(
- (dist.metadata['Name'] for dist in distributions()),
+ (dist.name for dist in distributions() if dist.name),
key=str.lower,
)
packages: dict[str, str] = {}
|