Package: devscripts Version: 2.10.68 Severity: normal In case the Url found in a watch file only contains the location name without closing dash, like the present
http://ipband.sourceforge.net ipband-(.*)\.tgz
then recursive_regex_dir() will have an undefined use of "$2".
The following patch recovers from that unfortunate state and
the unbecoming error message.
Kind regards,
Mats Erik Andersson, fil. dr
--- /usr/bin/uscan.orig 2010-09-09 03:18:33.000000000 +0200
+++ /usr/bin/uscan 2010-10-21 10:46:27.000000000 +0200
@@ -1494,9 +1494,11 @@
$base =~ m%^(\w+://[^/]+)/(.*)$%;
my $site = $1;
- my @dirs = split /(\/)/, $2;
+ my @dirs = ();
my $dir = '/';
+ @dirs = split /(\/)/, $2 if (defined $2);
+
foreach my $dirpattern (@dirs) {
if ($dirpattern =~ /\(.*\)/) {
print STDERR "$progname debug: dir=>$dir dirpattern=>$dirpattern\n"
signature.asc
Description: Digital signature
