pacman: return 1 when -F <target> has no results

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
morganamilo 2019-10-12 20:12:03 +01:00 committed by Allan McRae
parent 808a4f15ce
commit d4e667ee5e

View file

@ -176,11 +176,11 @@ static int files_search(alpm_list_t *syncs, alpm_list_t *targets, int regex) {
notfound: notfound:
if(!found) { if(!found) {
ret++; ret = 1;
} }
} }
return 0; return ret;
} }
static void dump_file_list(alpm_pkg_t *pkg) { static void dump_file_list(alpm_pkg_t *pkg) {