index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2016-04-02 16:05:55 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-05-05 13:52:23 +1000 |
commit | 7d1ea0b814723d6a422c5569df19513c40bf99fe (patch) | |
tree | f4cef1e9623c3afa811592cf8e17d7121d2f1748 | |
parent | 502e0d1db0f588d3067a2d464824e8f1cff20ca1 (diff) |
-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, |