[calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-1-gf62c9f6

Jon TURNEY jturney@sourceware.org
Sun Oct 3 15:22:54 GMT 2021




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?



More information about the Cygwin-apps-cvs mailing list