public inbox for
help / color / mirror / Atom feed
From: Jon TURNEY <>
Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20200611-17-gc86b22c
Date: Mon, 30 Nov 2020 16:26:07 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);h=c86b22cf040be188c30058c869fa15cac29a7367

commit c86b22cf040be188c30058c869fa15cac29a7367
Author: Jon Turney <>
Date:   Sat Nov 28 13:51:32 2020 +0000

    Make homepage redirection warning less spamy
    Don't warn about intra-site redirects.

 calm/ | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/calm/ b/calm/
index 33c1087..063ebcd 100644
--- a/calm/
+++ b/calm/
@@ -133,7 +133,9 @@ def fix_homepage_src_hint(dirpath, hf, tf):
             logging.warning('homepage:%s permanently redirects to %s, fixing' % (homepage, redirect_homepage))
             homepage = redirect_homepage
-            logging.warning('homepage:%s permanently redirects to %s' % (homepage, redirect_homepage))
+            # don't warn about intra-site redirects
+            if not redirect_homepage.startswith(homepage):
+                logging.warning('homepage:%s permanently redirects to %s' % (homepage, redirect_homepage))
     # write updated hints
     if homepage != hints.get('homepage', None):

                 reply	other threads:[~2020-11-30 16:26 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* 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).