summaryrefslogtreecommitdiff
path: root/src/pacman/sync.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-12 04:45:21 +0000
committerAaron Griffin <aaron@archlinux.org>2007-02-12 04:45:21 +0000
commitdfb1f1e23730c1d4e8aa5c041ed758063c81c692 (patch)
treeb56ef8e6e60cf353f487fed505e7f6e4cb83e95e /src/pacman/sync.c
parent9803ec306691a51db820a7f14fc240eae4c910e8 (diff)
* 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/sync.c')
-rw-r--r--src/pacman/sync.c6
1 files changed, 1 insertions, 5 deletions
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;
}