summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormorganamilo <morganamilo@gmail.com>2019-10-12 21:12:03 +0200
committerAllan McRae <allan@archlinux.org>2019-10-13 04:37:34 +0200
commitd4e667ee5eeb3139045d7333fcddf6ba449da7b2 (patch)
tree4d165551976df49f31b1f2ec44dd19ddd7a6b7a0
parent808a4f15ce82d2ed7eeb06de73d0f313620558ee (diff)
downloadpacman-d4e667ee5eeb3139045d7333fcddf6ba449da7b2.tar.gz
pacman-d4e667ee5eeb3139045d7333fcddf6ba449da7b2.tar.xz
pacman: return 1 when -F <target> has no results
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--src/pacman/files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/files.c b/src/pacman/files.c
index 8e518486..af11666d 100644
--- a/src/pacman/files.c
+++ b/src/pacman/files.c
@@ -176,11 +176,11 @@ static int files_search(alpm_list_t *syncs, alpm_list_t *targets, int regex) {
notfound:
if(!found) {
- ret++;
+ ret = 1;
}
}
- return 0;
+ return ret;
}
static void dump_file_list(alpm_pkg_t *pkg) {