[devscripts] 02/07: ucan: Add --bare and opts=bare support

James McCoy jamessan at debian.org
Sat Oct 3 01:38:59 UTC 2015


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 <jamessan at debian.org>



More information about the devscripts-devel mailing list