prt-auf: accommodate inconsistent whitespace in the list of dependencies

This commit is contained in:
John McQuah 2022-10-31 16:52:25 -04:00
parent 1238b5f152
commit badb7373bb
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ if (($action =~ /^(listinst|listorphans)/)
my $cleandep = $depline;
$cleandep =~ s/ .provided by .*// if ($action eq "deptree");
$dep = (split / /, $cleandep)[-1];
next if (($seen{$dep}) and ($odepends{all}==0));
next if ((! $dep) or (($seen{$dep}) and ($odepends{all}==0)));
$seen{$dep}=1;
if ($action ne "quickdep") {
$ind = (grep { $_ eq $dep } @installed) ? "[i]" : "[ ]";