Make config parsing a two-part affair
commit73c74355abf0f6759a2f9a9219ea571444b6495a
authorDan McGee <dan@archlinux.org>
Thu, 5 May 2011 16:42:42 +0000 (5 11:42 -0500)
committerDan McGee <dan@archlinux.org>
Thu, 5 May 2011 16:48:12 +0000 (5 11:48 -0500)
treeb78545a1352bf5b463a2365b024f5605dfb0f0d0
parentbda208f82325812749396efacf828066947872e5
Make config parsing a two-part affair

This ensures we call any alpm_option type functions before registering
databases, making sure all paths and other defaults (e.g. sig
verification levels) have been set first. This will ensure we can
continue to allow crazy config files where [options] doesn't come first.

The diffstat on this commit is misleading; view with
-w/--ignore-all-space to get a better idea of what needed to be touched.

Signed-off-by: Dan McGee <dan@archlinux.org>
src/pacman/conf.c
src/pacman/pacman.c
src/pacman/pacman.h