File: ignore-empty-metadata.patch

package info (click to toggle)
python-scooby 0.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 396 kB
  • sloc: python: 1,115; makefile: 32
file content (19 lines) | stat: -rw-r--r-- 742 bytes parent folder | download
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] = {}