mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-05 03:18:00 +02:00
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 <robin.roevens@disroot.org> Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org> Tested-by: Bernhard Bitsch <bbitsch@ipfire.org> Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
bc176927e4
commit
a06a552ccf
@@ -524,13 +524,13 @@ sub dblist {
|
|||||||
foreach $line (sort @db) {
|
foreach $line (sort @db) {
|
||||||
next unless ($line =~ /.*;.*;.*;/ );
|
next unless ($line =~ /.*;.*;.*;/ );
|
||||||
$use_color = "";
|
$use_color = "";
|
||||||
$count++;
|
|
||||||
@templine = split(/\;/,$line);
|
@templine = split(/\;/,$line);
|
||||||
if ("$filter" eq "notinstalled") {
|
if ("$filter" eq "notinstalled") {
|
||||||
next if ( -e "$Conf::dbdir/installed/meta-$templine[0]" );
|
next if ( -e "$Conf::dbdir/installed/meta-$templine[0]" );
|
||||||
} elsif ("$filter" eq "installed") {
|
} elsif ("$filter" eq "installed") {
|
||||||
next unless ( -e "$Conf::dbdir/installed/meta-$templine[0]" );
|
next unless ( -e "$Conf::dbdir/installed/meta-$templine[0]" );
|
||||||
}
|
}
|
||||||
|
$count++;
|
||||||
if ("$forweb" eq "forweb")
|
if ("$forweb" eq "forweb")
|
||||||
{
|
{
|
||||||
if ("$filter" eq "notinstalled") {
|
if ("$filter" eq "notinstalled") {
|
||||||
|
|||||||
Reference in New Issue
Block a user