From: Robin Roevens Date: Thu, 24 Jun 2021 22:07:00 +0000 (+0200) Subject: pakfire: Fix small bug: wrong pak count on list X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a06a552ccf0cfcc0df0ebb04a5ba0346897aa42e;p=people%2Fstevee%2Fipfire-2.x.git pakfire: Fix small bug: wrong pak count on list Fixes pakfire list installed/notinstalled command displaying the count of all available paks instead of the count of actual installed respectively not installed paks. Signed-off-by: Robin Roevens Reviewed-by: Bernhard Bitsch Tested-by: Bernhard Bitsch Reviewed-by: Michael Tremer --- diff --git a/src/pakfire/lib/functions.pl b/src/pakfire/lib/functions.pl index 2f34763d5d..cb448a766a 100644 --- a/src/pakfire/lib/functions.pl +++ b/src/pakfire/lib/functions.pl @@ -524,13 +524,13 @@ sub dblist { foreach $line (sort @db) { next unless ($line =~ /.*;.*;.*;/ ); $use_color = ""; - $count++; @templine = split(/\;/,$line); if ("$filter" eq "notinstalled") { next if ( -e "$Conf::dbdir/installed/meta-$templine[0]" ); } elsif ("$filter" eq "installed") { next unless ( -e "$Conf::dbdir/installed/meta-$templine[0]" ); } + $count++; if ("$forweb" eq "forweb") { if ("$filter" eq "notinstalled") {