diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2023-01-17 17:39:07 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2023-02-19 20:01:42 +0300 |
commit | c4e67ed59aeaffd4e3c519c27445e9a776213359 (patch) | |
tree | 0ce1a075738b25a7491428cab4fd8b8907f8e963 /calm/reports.py | |
parent | 6be5440ff6d88db80bf862d04504c74610f7ed7a (diff) |
Revise maintainers module
The data ordered by package name is the one we use the most often, so
make that the primary form.
Also use mtime_cache for the result of parsing cygwin-pkg-maint.
v2:
Fix mkgitolite and reports
Keep maintainers in a list, not a set, because we need "first named
maintainer".
Don't write permissions lines with an empty list of names, as that's
syntactically incorrect.
Diffstat (limited to 'calm/reports.py')
-rw-r--r-- | calm/reports.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/calm/reports.py b/calm/reports.py index 3932d78..43b9030 100644 --- a/calm/reports.py +++ b/calm/reports.py @@ -65,8 +65,7 @@ def linkify(pn, po): # produce a report of unmaintained packages # def unmaintained(args, packages, reportsdir): - mlist = maintainers.read(args, None) - pkg_maintainers = maintainers.invert(mlist) + pkg_maintainers = maintainers.pkg_list(args.pkglist) um_list = [] @@ -78,7 +77,7 @@ def unmaintained(args, packages, reportsdir): if po.kind != package.Kind.source: continue - if 'ORPHANED' not in pkg_maintainers[po.orig_name]: + if (po.orig_name not in pkg_maintainers) or (not pkg_maintainers[po.orig_name].is_orphaned()): continue # the highest version we have |