Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/query.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pacman/query.c b/src/pacman/query.c
index 1d102a9e..34d7fcbe 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -468,6 +468,9 @@ int pacman_query(alpm_list_t *targets)
}
} else {
pkg = alpm_db_get_pkg(db_local, strname);
+ if(pkg == NULL) {
+ pkg = alpm_find_satisfier(alpm_db_get_pkgcache(db_local), strname);
+ }
if(pkg == NULL) {
pm_printf(ALPM_LOG_ERROR,