Better error handling out of package load method
commit2cfcc874b9332ad207398b9e20dc8880d93e8ae4
authorDan McGee <dan@archlinux.org>
Thu, 25 Aug 2011 23:29:00 +0000 (25 18:29 -0500)
committerDan McGee <dan@archlinux.org>
Mon, 29 Aug 2011 00:52:41 +0000 (28 19:52 -0500)
tree6276468d8aa91c6e8546704a5c92166752c01ac6
parentdc3336c27728fc16d2f9e68cb818648e7ca88467
Better error handling out of package load method

There are many other ways to fail a package load other than "file not
found". We should also use the correct error code in this case. Clean it
up a bit in the various callers.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/be_package.c
src/pacman/query.c
src/util/testpkg.c