mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-21 23:38:49 -05:00
files_search: reset found for each target
Otherwise any invalid targets following a successful match will not get an error message. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
726712aa08
commit
8fa02036c3
@ -206,10 +206,11 @@ static void dump_file_list(alpm_pkg_t *pkg) {
|
||||
|
||||
static int files_list(alpm_list_t *syncs, alpm_list_t *targets) {
|
||||
alpm_list_t *i, *j;
|
||||
int ret = 0, found = 0;
|
||||
int ret = 0;
|
||||
|
||||
if(targets != NULL) {
|
||||
for(i = targets; i; i = alpm_list_next(i)) {
|
||||
int found = 0;
|
||||
char *targ = i->data;
|
||||
char *repo = NULL;
|
||||
char *c = strchr(targ, '/');
|
||||
|
Loading…
Reference in New Issue
Block a user