public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20200611-17-gc86b22c
@ 2020-11-30 16:26 Jon TURNEY
0 siblings, 0 replies; only message in thread
From: Jon TURNEY @ 2020-11-30 16:26 UTC (permalink / raw)
To: cygwin-apps-cvs
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):
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-30 16:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-30 16:26 [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20200611-17-gc86b22c Jon TURNEY
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).