Allow -Qo to perform a functional 'which'
commit7f02f7cb9fba13a8e9762d30d7e0648b257ec091
authorAllan McRae <allan@archlinux.org>
Sun, 7 Mar 2010 03:02:37 +0000 (7 13:02 +1000)
committerDan McGee <dan@archlinux.org>
Tue, 11 May 2010 17:09:43 +0000 (11 12:09 -0500)
tree1692d8ff557a54758e2dbb6cafe3fdac5c172271
parent364ebf4e16658f36d4dbff997916c8ccec4d2b79
Allow -Qo to perform a functional 'which'

When pacman queries the ownership of an object that is not a path, it will
check in the users PATH for a match. Implements FS#8798.

Dan: did some small refactoring and error message changes when PATH is
searched and nothing is found.

Original-patch-by: Shankar <jatheendra@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
src/pacman/query.c