]> git.donarmstrong.com Git - debbugs.git/commitdiff
discard empty packages in split_packages
authorDon Armstrong <don@donarmstrong.com>
Fri, 29 May 2009 23:50:21 +0000 (16:50 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 29 May 2009 23:50:21 +0000 (16:50 -0700)
Debbugs/Status.pm

index 9796b3b606d6391cd2b33a6a7a92229f9ef911ff..f9f0af6689d3e12fa8c957c74b8a3fc875faee6d 100644 (file)
@@ -655,7 +655,7 @@ Split a package string from the status file into a list of package names.
 sub splitpackages {
     my $pkgs = shift;
     return unless defined $pkgs;
-    return map lc, split /[ \t?,()]+/, $pkgs;
+    return grep {length $_} map lc, split /[\s,()?]+/, $pkgs;
 }