query: do not exit 1 on empty output
commit416e81e40d45769ff25c493f6866f2b11f2b1829
authorAlad Wenter <alad@archlinux.org>
Tue, 15 Feb 2022 17:00:41 +0000 (15 18:00 +0100)
committerAlad Wenter <alad@archlinux.org>
Tue, 15 Feb 2022 17:00:41 +0000 (15 18:00 +0100)
treea947957d991c79de7915a47bfb3d8cf9dec1e5e7
parent6bfbb74afdf599782d893dddfddbe19c5f7bdd18
query: do not exit 1 on empty output

Other tools such as aur-depends assume that empty output (such as leaves
in the dependency tree with only official repository packages) is valid.
Instead of taking special cases into consideration, make aur-query
return 0 again if no results were found. This does not break set
intersection or union of search results, because type=search remains
set.

Closes #929
lib/aur-query