Skip to content

Commit f0c309b

Browse files
committed
also remove empty lines from output of LEAF_PACKAGES command
1 parent b537693 commit f0c309b

File tree

1 file changed

+1
-1
lines changed
  • ncm-spma/src/main/perl/spma

1 file changed

+1
-1
lines changed

ncm-spma/src/main/perl/spma/yum.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ sub packages_to_remove
694694

695695
# The leaf set doesn't contain the header lines, which are just
696696
# garbage.
697-
my $leaves = Set::Scalar->new(grep($_ !~ m{\s}, split(/\n/, $out)));
697+
my $leaves = Set::Scalar->new(grep($_ !~ m{^$|\s}, split(/\n/, $out)));
698698

699699
my $candidates = $leaves-$wanted;
700700

0 commit comments

Comments
 (0)