From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id 9324C385802D; Mon, 30 Nov 2020 16:26:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9324C385802D To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20200611-17-gc86b22c X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: c507644c2c56e1fe8476b1ce48aa1642e4a80bc8 X-Git-Newrev: c86b22cf040be188c30058c869fa15cac29a7367 Message-Id: <20201130162607.9324C385802D@sourceware.org> Date: Mon, 30 Nov 2020 16:26:07 +0000 (GMT) From: Jon TURNEY X-BeenThere: cygwin-apps-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin-apps git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2020 16:26:07 -0000 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;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. 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):