Skip to content

Commit d811fec

Browse files
lexmingjrha
authored andcommitted
also remove empty lines from output of LEAF_PACKAGES command
1 parent 752d0f1 commit d811fec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • ncm-spma/src/main/perl/spma

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

Lines changed: 1 addition & 1 deletion
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)