From dfb1f1e23730c1d4e8aa5c041ed758063c81c692 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 12 Feb 2007 04:45:21 +0000 Subject: * Updated the README file * Removed the handle->needles param. It's not needed not that alpm_list_t is public --- src/pacman/query.c | 5 +---- src/pacman/sync.c | 6 +----- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'src/pacman') 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); } diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 0a5ef72b..54ef205f 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -236,14 +236,10 @@ static int sync_search(alpm_list_t *syncs, alpm_list_t *targets) { alpm_list_t *i, *j, *ret; - for(i = targets; i; i = alpm_list_next(i)) { - alpm_option_add_needle(alpm_list_getdata(i)); - } - for(i = syncs; i; i = alpm_list_next(i)) { pmdb_t *db = (pmdb_t *)alpm_list_getdata(i); if(targets) { - ret = alpm_db_search(db); + ret = alpm_db_search(db, targets); if(ret == NULL) { continue; } -- cgit v1.2.3-70-g09d2