diff --git a/src/pakfire/lib/functions.pl b/src/pakfire/lib/functions.pl
index 96f8d144a..11b1e37d5 100644
--- a/src/pakfire/lib/functions.pl
+++ b/src/pakfire/lib/functions.pl
@@ -519,8 +519,13 @@ sub dblist {
} elsif ("$filter" eq "installed") {
next unless ( -e "$Conf::dbdir/installed/meta-$templine[0]" );
}
- if ("$forweb" eq "forweb") {
- print "\n";
+ if ("$forweb" eq "forweb")
+ {
+ if ("$filter" eq "notinstalled") {
+ print "\n";
+ } else {
+ print "\n";
+ }
} else {
if ("$Pakfire::enable_colors" eq "1") {
if (&isinstalled("$templine[0]")) {