index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | src/pacman/sync.c | 6 |
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 17b9b3a2..4d1c5143 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -219,10 +219,8 @@ static int sync_search(list_t *syncs, list_t *targets) for(i = syncs; i; i = i->next) { sync_t *sync = i->data; if(targets) { - list_t *j; - - for(j = targets; j; j = j->next) { - db_search(sync->db, sync->treename, j->data); + if(db_search(sync->db, sync->treename, targets)) { + return(1); } } else { PM_LIST *lp; |