nvi...
authorSteinar H. Gunderson <sesse@rietz>
Wed, 7 Mar 2007 19:36:48 +0000 (19:36 +0000)
committerSteinar H. Gunderson <sesse@rietz>
Wed, 7 Mar 2007 19:36:48 +0000 (19:36 +0000)
bugreport

index c528495..3fceaac 100755 (executable)
--- a/bugreport
+++ b/bugreport
@@ -201,8 +201,8 @@ sub FilterPackages($) {
 
 sub FilterBugs() {
        for my $p (sort keys %scanlib::packagelist) {
-               $scanlib::packagelist{$p} = join(' ', grep { scanlib::check_worry($scanlib::bugs{$_}) } split / /, $scanlib::packagelist{$p});
-               delete $scanlib::packagelist{$p} if ($scanlib::packagelist{$p} eq '');
+               $scanlib::packagelist{$p} = [ grep { scanlib::check_worry($scanlib::bugs{$_}) } @{$scanlib::packagelist{$p}} ];
+               delete $scanlib::packagelist{$p} if (scalar @{$scanlib::packagelist{$p}} == 0);
        }
 }