From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id 7BBE63858D3C; Sun, 3 Oct 2021 15:22:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7BBE63858D3C To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-1-gf62c9f6 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 22cf4c796e341e6c56f8bcaf63a539fd480e88a3 X-Git-Newrev: f62c9f69af7345ff14a9d4a2bae99a80023626e6 Message-Id: <20211003152254.7BBE63858D3C@sourceware.org> Date: Sun, 3 Oct 2021 15:22:54 +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: Sun, 03 Oct 2021 15:22:54 -0000 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=f62c9f69af7345ff14a9d4a2bae99a80023626e6 commit f62c9f69af7345ff14a9d4a2bae99a80023626e6 Author: Jon Turney Date: Sat Jun 26 14:34:31 2021 +0100 Also ignore relative URL intra-site redirects Diff: --- calm/fixes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calm/fixes.py b/calm/fixes.py index 613e361..796805a 100644 --- a/calm/fixes.py +++ b/calm/fixes.py @@ -128,7 +128,7 @@ def _fix_homepage_src_hint(hints, dirpath, _hf, tf): homepage = redirect_homepage else: # don't warn about intra-site redirects - if not redirect_homepage.startswith(homepage): + if (not redirect_homepage.startswith(homepage)) and (redirect_homepage.startswith('http')): logging.warning('homepage:%s permanently redirects to %s' % (homepage, redirect_homepage)) # changed?