summaryrefslogtreecommitdiffstats
path: root/src/pacman/query.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-12 05:45:21 +0100
committerAaron Griffin <aaron@archlinux.org>2007-02-12 05:45:21 +0100
commitdfb1f1e23730c1d4e8aa5c041ed758063c81c692 (patch)
treeb56ef8e6e60cf353f487fed505e7f6e4cb83e95e /src/pacman/query.c
parent9803ec306691a51db820a7f14fc240eae4c910e8 (diff)
downloadpacman-dfb1f1e23730c1d4e8aa5c041ed758063c81c692.tar.gz
pacman-dfb1f1e23730c1d4e8aa5c041ed758063c81c692.tar.xz
* Updated the README file
* Removed the handle->needles param. It's not needed not that alpm_list_t is public
Diffstat (limited to 'src/pacman/query.c')
-rw-r--r--src/pacman/query.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pacman/query.c b/src/pacman/query.c
index 62cbd327..160b56e8 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -87,10 +87,7 @@ int pacman_query(alpm_list_t *targets)
int done = 0;
if(config->op_q_search) {
- for(i = targets; i; i = alpm_list_next(i)) {
- alpm_option_add_needle(alpm_list_getdata(i));
- }
- alpm_list_t *ret = alpm_db_search(db_local);
+ alpm_list_t *ret = alpm_db_search(db_local, targets);
if(ret == NULL) {
return(1);
}