pacman: return 1 when -F <target> has no results
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
808a4f15ce
commit
d4e667ee5e
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue