main: --list-all shouldn't list 'uninstalled' packages

feature/tap-sh
William Pitcock 2012-07-26 00:13:02 -05:00
parent 573cf8d21c
commit 24bb536305
1 changed files with 4 additions and 1 deletions

5
main.c
View File

@ -103,7 +103,10 @@ print_fragment(pkg_fragment_t *frag)
static void static void
print_list_entry(const pkg_t *entry) print_list_entry(const pkg_t *entry)
{ {
printf("-%30s %s - %s\n", entry->id, entry->realname, entry->description); if (entry->uninstalled)
return;
printf("%-30s %s - %s\n", entry->id, entry->realname, entry->description);
} }
static void static void