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. 20200611-17-gc86b22c
Date: Mon, 30 Nov 2020 16:26:07 +0000 (GMT)	[thread overview]
Message-ID: <20201130162607.9324C385802D@sourceware.org> (raw)




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

commit c86b22cf040be188c30058c869fa15cac29a7367
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Sat Nov 28 13:51:32 2020 +0000

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


Diff:
---
 calm/fixes.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/calm/fixes.py b/calm/fixes.py
index 33c1087..063ebcd 100644
--- a/calm/fixes.py
+++ b/calm/fixes.py
@@ -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
         else:
-            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:
  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=20201130162607.9324C385802D@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).