diff options
-rwxr-xr-x | rpmdrake | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -675,7 +675,7 @@ or you already installed all of them.")); } else { #- special case, we don't populate all the tree at first (to speed things up) %elems = (); - foreach my $root (sort { $a cmp $b } uniq(map { ($_->[1] =~ /([^\|]+)\|?/)[0] } @elems)) { + foreach my $root (sort { $a cmp $b } uniq(map { (split /\|/, $_->[1])[0] } @elems)) { $add_node->('', $root); @{$elems{$root}} = sort { $a->[1] cmp $b->[1] || uc($a->[0]) cmp uc($b->[0]) } grep { $_->[1] =~ /^\Q$root\E\b/ } @elems; |