Control: tag -1 + patch Le 20/10/2017 15:23, Stephen Kitt a écrit :
Given that the sf.net redirector uses TLS to talk to the redirector, it would be nice if we could specify https://sf.net in debian/watch as well as http://sf.net (especially in light of lintian’s new debian-watch-uses-insecure-uri tag).
The attached patch fixes this. Regards, Stephen
diff --git a/scripts/uscan.pl b/scripts/uscan.pl index 63d3381e..f1b052d2 100755 --- a/scripts/uscan.pl +++ b/scripts/uscan.pl @@ -1043,12 +1043,12 @@ simpler form of URL. The format below will automatically be rewritten to use the redirector with the watch file: version=4 - http://sf.net/<project>/ <tar-name>-(.+)\.tar\.gz debian uupdate + https://sf.net/<project>/ <tar-name>-(.+)\.tar\.gz debian uupdate For B<audacity>, set the watch file as: version=4 - http://sf.net/audacity/ audacity-minsrc-(.+)\.tar\.gz debian uupdate + https://sf.net/audacity/ audacity-minsrc-(.+)\.tar\.gz debian uupdate Please note, you can still use normal functionalities of B<uscan> to set up a watch file for this site without using the redirector. @@ -2723,9 +2723,9 @@ sub process_watchline ($$$$$$) } # Handle sf.net addresses specially - if (! $bare and $base =~ m%^http://sf\.net/%) { + if (! $bare and $base =~ m%^https?://sf\.net/%) { uscan_verbose "sf.net redirection to qa.debian.org/watch/sf.php\n"; - $base =~ s%^http://sf\.net/%https://qa.debian.org/watch/sf.php/%; + $base =~ s%^https?://sf\.net/%https://qa.debian.org/watch/sf.php/%; $filepattern .= '(?:\?.*)?'; } # Handle pypi.python.org addresses specially