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. 20230209-28-g9658ffb
Date: Fri,  5 May 2023 17:21:28 +0000 (GMT)	[thread overview]
Message-ID: <20230505172128.D983F3858D33@sourceware.org> (raw)




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=9658ffbf216528b5a2b306e9204b531942409c9a

commit 9658ffbf216528b5a2b306e9204b531942409c9a
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Fri May 5 14:24:28 2023 +0100

    Avoid spurious license normalization warnings over whitespace

https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=97ed5181c3f06e4241ad8c160e0e19b951209318

commit 97ed5181c3f06e4241ad8c160e0e19b951209318
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Fri May 5 14:19:16 2023 +0100

    Fix page title for rebuild reports


Diff:
---
 calm/hint.py    | 4 ++++
 calm/reports.py | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/calm/hint.py b/calm/hint.py
index 71fa7b9..c202f8c 100755
--- a/calm/hint.py
+++ b/calm/hint.py
@@ -297,6 +297,10 @@ def hint_file_parse(fn, kind, strict=False):
 
                     # license must be a valid spdx license expression
                     if key == 'license' and licensing:
+                        # first, normalize whitespace in license, so we don't
+                        # get spurious normalization warnings over whitespace
+                        value = re.sub(r'\s+', ' ', value)
+
                         try:
                             licensing.parse(value, strict=True)
                             le = licensing.validate(value, strict=True)
diff --git a/calm/reports.py b/calm/reports.py
index f659cf5..a9a3f4b 100644
--- a/calm/reports.py
+++ b/calm/reports.py
@@ -247,7 +247,7 @@ def provides_rebuild(args, packages, reportfile, provide_package):
     print('</table>', file=body)
 
     with utils.open_amifc(reportfile) as f:
-        template('Packages needing rebuilds for latest perl', body.getvalue(), f)
+        template('Packages needing rebuilds for latest %s' % provide_package, body.getvalue(), f)
 
 
 #


                 reply	other threads:[~2023-05-05 17:21 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=20230505172128.D983F3858D33@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: link
Be 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).