Allow leading "local/" in query operations
commit0c62b36c19d67939d7a84159c86a5de73fd9d36f
authorAllan McRae <allan@archlinux.org>
Sat, 19 May 2012 13:36:30 +0000 (19 23:36 +1000)
committerDan McGee <dan@archlinux.org>
Tue, 26 Jun 2012 04:43:36 +0000 (25 23:43 -0500)
tree32f7189c5c5f9240c06a1b65eb3714bb4d0a54ca
parent47711947ddf95032334fbe9dd912cbd8d146e174
Allow leading "local/" in query operations

I find that when copying the output of "pacman -Qs foo" into a
"pacman -Qi" operation to get more information on the packages, I
consistently copy the "local/" prefix. It is a minor usability
improvement to strip this if present.

Dan: Pluck out LOCAL_PREFIX and magic numbers.

Signed-off-by: Allan McRae <allan@archlinux.org>
src/pacman/query.c