The following commit has been merged in the master branch:
commit 7b39a6cf3b45d526a264ba9b08ac7123772acf85
Author: James Vega <james...@debian.org>
Date:   Sun Mar 20 14:55:35 2011 -0400

    uscan: Avoid "Use of uninitialized value" warning.
    
    Closes: #600909
    Signed-off-by: James Vega <james...@debian.org>

diff --git a/debian/changelog b/debian/changelog
index 60e99a8..0637fab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,8 +8,12 @@ devscripts (2.10.72) UNRELEASED; urgency=low
     functionality.  Relationships removed from Recommends were either added to
     Suggests if it makes sense to call some attention to them or were removed
     from debian/control completely.  (Closes: #605102, #610310, LP: #485264)
-  * uscan: Let unzip convert text files to native line endings when repacking.
-    Thanks to Daniel Kahn Gilmor for the suggestion.  (Closes: #618513)
+  * uscan:
+    + Let unzip convert text files to native line endings when repacking.
+      Thanks to Daniel Kahn Gilmor for the suggestion.  (Closes: #618513)
+    + Avoid "Use of uninitialized value" warning when URL doesn't have
+      "/" after the host.  Thanks to Mats Erik Andersson for the patch.
+      (Closes: #600909)
   * Remove use of lzma command in favor of xz. (Closes: #599641)
     + debian/control: Remove lzma from Recommends.
     + uscan: Use xz to repack lzma tarballs.
diff --git a/scripts/uscan.pl b/scripts/uscan.pl
index 2c62bc3..6b5e4fb 100755
--- a/scripts/uscan.pl
+++ b/scripts/uscan.pl
@@ -1499,7 +1499,10 @@ sub recursive_regex_dir ($$$) {
 
     $base =~ m%^(\w+://[^/]+)/(.*)$%;
     my $site = $1;
-    my @dirs = split /(\/)/, $2;
+    my @dirs = ();
+    if (defined $2) {
+       @dirs = split /(\/)/, $2;
+    }
     my $dir = '/';
 
     foreach my $dirpattern (@dirs) {

-- 
Git repository for devscripts


-- 
To unsubscribe, send mail to pkg-devscripts-unsubscr...@teams.debian.net.

Reply via email to