]> err.no Git - dpkg/commitdiff
Deal properly with empty fields
authorWichert Akkerman <wakkerma@debian.org>
Tue, 24 Jul 2001 17:25:53 +0000 (17:25 +0000)
committerWichert Akkerman <wakkerma@debian.org>
Tue, 24 Jul 2001 17:25:53 +0000 (17:25 +0000)
main/showpkg.c

index 832f8f3b2e2e6a2b056d87388e49e74f958a8241..4f513cd2ae79a73eb2afc0322c8a61e357bacf2e 100644 (file)
@@ -189,6 +189,8 @@ void show1package(const struct lstitem* head, struct pkginfo *pkg) {
                                        char* i;
 
                                        fip->wcall(&fb,pkg,&pkg->installed,fip);
+                                       if (!fb.used)
+                                               break;
                                        /* Bugger, wcall adds the fieldname and a trailing newline we
                                         * do not need. We should probably improve wcall to only do that
                                         * optionally, but this will do for now (ie this is a TODO)