diff options
Diffstat (limited to 'src/pacman/sync.c')
-rw-r--r-- | src/pacman/sync.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; |