public inbox for cygwin-apps-cvs@sourceware.org help / color / mirror / Atom feed
From: Jon Turney <jturney@sourceware.org> To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20221205-29-gde32686 Date: Sun, 22 Jan 2023 10:54:56 +0000 (GMT) [thread overview] Message-ID: <20230122105456.5EBF13858D32@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=de32686b4e712fdc228087c043eef69def82aac8 commit de32686b4e712fdc228087c043eef69def82aac8 Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Sun Jan 22 10:41:39 2023 +0000 Drop a spurious argument to maintainers.add_packages() Drop a spurious argument to maintainers.add_packages(), left-over after ad6b47c27b11 ("Relax trusted maintainer restrictions"). Also report an error if CYGNAME isn't set. Diff: --- calm/tool_util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calm/tool_util.py b/calm/tool_util.py index 43fe3ea..712b0e2 100644 --- a/calm/tool_util.py +++ b/calm/tool_util.py @@ -45,9 +45,12 @@ def split(pvr): def permitted(p): # check CYGNAME is a maintainer for package cygname = os.environ.get('CYGNAME', None) + if not cygname: + logging.error("who are you?") + return False mlist = {} - mlist = maintainers.add_packages(mlist, common_constants.PKGMAINT, trustedMaint=common_constants.TRUSTEDMAINT) + mlist = maintainers.add_packages(mlist, common_constants.PKGMAINT) # CYGNAME is a maintainer for package if p in mlist[cygname].pkgs:
reply other threads:[~2023-01-22 10:54 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230122105456.5EBF13858D32@sourceware.org \ --to=jturney@sourceware.org \ --cc=cygwin-apps-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).