diff options
author | Felix Fietkau <nbd@pi.lan> | 2008-08-23 13:39:05 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@pi.lan> | 2008-08-23 13:39:05 +0200 |
commit | c1684cd213ebc7b0064f9dfe536b5d5283a18ef4 (patch) | |
tree | de37c784f18881fc086ec173e3eea2e2e1d205e2 /cli.c | |
parent | 6ae6536eddd7605135a5e18c92fefc3e442943bd (diff) | |
download | uci-c1684cd213ebc7b0064f9dfe536b5d5283a18ef4.tar.gz |
filter incomplete lookups on uci show
Diffstat (limited to 'cli.c')
-rw-r--r-- | cli.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -202,6 +202,8 @@ static int package_cmd(int cmd, char *tuple) uci_export(ctx, stdout, ptr.p, true); break; case CMD_SHOW: + if (!(ptr.flags & UCI_LOOKUP_COMPLETE)) + return 1; switch(e->type) { case UCI_TYPE_PACKAGE: uci_show_package(ptr.p); |