summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-03-06 23:06:28 +0100
committerDan McGee <dan@archlinux.org>2007-03-06 23:06:28 +0100
commit48181e9a84c84b698b7fdce859889d6c24849da3 (patch)
tree848297c07384707d4382376cfd187cde08965105 /src
parente6d6ee2c5a3f25004dc1b9688d07838e3c4b3138 (diff)
downloadpacman-48181e9a84c84b698b7fdce859889d6c24849da3.tar.gz
pacman-48181e9a84c84b698b7fdce859889d6c24849da3.tar.xz
* -Qs was returning an error if no package found, which is not the same behavior as -Ss.
Diffstat (limited to 'src')
-rw-r--r--src/pacman/query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/query.c b/src/pacman/query.c
index 2964a7cb..b4888d05 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -92,7 +92,7 @@ int pacman_query(alpm_list_t *targets)
if(config->op_q_search) {
alpm_list_t *ret = alpm_db_search(db_local, targets);
if(ret == NULL) {
- return(1);
+ return(0);
}
for(i = ret; i; i = alpm_list_next(i)) {
char *group = NULL;