Extract an _alpm_pkg_validate_internal() method
commitafdbfc05f771f2c684ee195b46d26b3d08a67085
authorDan McGee <dan@archlinux.org>
Tue, 20 Sep 2011 01:40:32 +0000 (19 20:40 -0500)
committerDan McGee <dan@archlinux.org>
Tue, 20 Sep 2011 15:23:11 +0000 (20 10:23 -0500)
treeb4906677251278e46545e1354676c0ab0f9fe614
parent7eb2f0cd151998d36746e2eb14cad2a3f8fb708b
Extract an _alpm_pkg_validate_internal() method

_alpm_pkg_load_internal() was becoming a monster. Extract the top bit of
the method that dealt with checksum and signature validation into a
separate method that should be called before one loads a package to
ensure it is valid.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/be_package.c
lib/libalpm/package.h
lib/libalpm/sync.c