public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-1-gf62c9f6
@ 2021-10-03 15:22 Jon TURNEY
0 siblings, 0 replies; only message in thread
From: Jon TURNEY @ 2021-10-03 15:22 UTC (permalink / raw)
To: cygwin-apps-cvs
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=f62c9f69af7345ff14a9d4a2bae99a80023626e6
commit f62c9f69af7345ff14a9d4a2bae99a80023626e6
Author: Jon Turney <jon.turney@dronecode.org.uk>
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?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-03 15:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-03 15:22 [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-1-gf62c9f6 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).