index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | src/pacman/query.c | 4 |
diff --git a/src/pacman/query.c b/src/pacman/query.c index 6f4f7c4c..71c02c71 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -106,8 +106,8 @@ int pacman_query(list_t *targets) int done = 0; if(pmo_q_search) { - for(targ = targets; targ; targ = targ->next) { - db_search(db_local, "local", targ->data); + if(db_search(db_local, "local", targets)) { + return(1); } return(0); } |