projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ae6536
)
filter incomplete lookups on uci show
author
Felix Fietkau
<nbd@pi.lan>
Sat, 23 Aug 2008 11:39:05 +0000
(13:39 +0200)
committer
Felix Fietkau
<nbd@pi.lan>
Sat, 23 Aug 2008 11:39:05 +0000
(13:39 +0200)
cli.c
patch
|
blob
|
history
diff --git
a/cli.c
b/cli.c
index 46da45af1a52f9f0119687d3b86d9efd9abb1057..1f08100d354f38c2f9ab93a3bc1ca1f69d97463e 100644
(file)
--- a/
cli.c
+++ b/
cli.c
@@
-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);