index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | src/pacman/query.c | 3 |
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, |