From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id D3F0B3858D1E; Sun, 12 Feb 2023 19:01:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3F0B3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676228465; bh=hFq+oe8bxHdbaNMvm1t1Z+4+mj60HCoit+6DIyTZ6rw=; h=To:Subject:Date:From:From; b=ya9Ct/AAjJL0s/jFJ3LSZECzHnDDrGIeweH0Xad5a6az2D1QHRKbcn3VhfjgoUI1X h9Dbs4rTOfzJWZ0S9suiRqRc4jFnz2S16uZaDYPakK42+Cy4qA/xtz7p3EmMKupFPT 8YOjglPBvJOpubDxq4CTizVREKiQ4p6e3oFAPwFM= To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20230209-8-g2ff6058 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 6e142a496f3cd0f3cd76cd56091d190800b873fa X-Git-Newrev: 2ff605868c0b99afe059767602b07f5522c47c8e Message-Id: <20230212190105.D3F0B3858D1E@sourceware.org> Date: Sun, 12 Feb 2023 19:01:05 +0000 (GMT) From: Jon Turney List-Id: https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=2ff605868c0b99afe059767602b07f5522c47c8e commit 2ff605868c0b99afe059767602b07f5522c47c8e Author: Jon Turney Date: Sun Feb 12 18:59:37 2023 +0000 Fix reports https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=59016dd9b0fbf0819ca79c2afff033797c8e9fba commit 59016dd9b0fbf0819ca79c2afff033797c8e9fba Author: Jon Turney Date: Sun Feb 12 17:59:50 2023 +0000 Fix mkgitolite for maintainers rewrite Keep maintainers in a list, not a set, because we need "first named maintainer". Diff: --- calm/mkgitoliteconf.py | 6 ++++-- calm/reports.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/calm/mkgitoliteconf.py b/calm/mkgitoliteconf.py index 3b8ab73..cf416ba 100755 --- a/calm/mkgitoliteconf.py +++ b/calm/mkgitoliteconf.py @@ -85,8 +85,10 @@ def do_main(args): print("repo git/cygwin-packages/%s" % (p)) print("C = %s @leads" % (users)) - print("RW master$ = %s" % (users)) - print("RW refs/tags/ = %s" % (users)) + if users: + # this won't be syntactically correct if users is empty + print("RW master$ = %s" % (users)) + print("RW refs/tags/ = %s" % (users)) print("owner = %s" % (owner)) print("") diff --git a/calm/reports.py b/calm/reports.py index c2fac58..43b9030 100644 --- a/calm/reports.py +++ b/calm/reports.py @@ -77,7 +77,7 @@ def unmaintained(args, packages, reportsdir): if po.kind != package.Kind.source: continue - if not pkg_maintainers[po.orig_name].is_orphaned(): + if (po.orig_name not in pkg_maintainers) or (not pkg_maintainers[po.orig_name].is_orphaned()): continue # the highest version we have