diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-11-01 19:56:38 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-11-04 06:06:21 +0100 |
commit | 8fa02036c3175f4cb1e837b6da5281520524ccba (patch) | |
tree | 7d96f4df62a6e63a3641c6b4ea54a8ef3830d6ff | |
parent | 726712aa08bb9699b5cea71a4a7a997551e9d7c8 (diff) | |
download | pacman-8fa02036c3175f4cb1e837b6da5281520524ccba.tar.gz pacman-8fa02036c3175f4cb1e837b6da5281520524ccba.tar.xz |
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>
-rw-r--r-- | src/pacman/files.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/files.c b/src/pacman/files.c index 5baf5e57..fb2f997e 100644 --- a/src/pacman/files.c +++ b/src/pacman/files.c @@ -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, '/'); |