On Thu, Oct 01, 2015 at 02:13:06PM +0000, Osamu Aoki wrote: > diff --git a/scripts/uscan.pl b/scripts/uscan.pl > index 99f90d2..5ed6794 100755 > --- a/scripts/uscan.pl > +++ b/scripts/uscan.pl > @@ -2310,12 +2330,14 @@ sub process_watchline ($$$$$$) > } > > # Handle sf.net addresses specially > - if ($base =~ m%^http://sf\.net/%) { > + if ($base =~ m%^http://sf\.net/% and ! $bare) { > $base =~ s%^http://sf\.net/%https://qa.debian.org/watch/sf.php/%;
It's better to have “! $bare” checks be the first part of these conditions. No reason to try regular rexpression matching if they've been disabled. Cheers, -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]> _______________________________________________ devscripts-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel
