summaryrefslogtreecommitdiffstats
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-05-05 18:42:42 +0200
committerDan McGee <dan@archlinux.org>2011-05-05 18:48:12 +0200
commit73c74355abf0f6759a2f9a9219ea571444b6495a (patch)
treeb78545a1352bf5b463a2365b024f5605dfb0f0d0 /src/pacman/pacman.c
parentbda208f82325812749396efacf828066947872e5 (diff)
downloadpacman-73c74355abf0f6759a2f9a9219ea571444b6495a.tar.gz
pacman-73c74355abf0f6759a2f9a9219ea571444b6495a.tar.xz
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>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 56f2c4e9..1a6e3eb4 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -262,7 +262,7 @@ static void setuseragent(void)
*
* @param ret the return value
*/
-void cleanup(int ret) {
+static void cleanup(int ret) {
/* free alpm library resources */
if(alpm_release() == -1) {
pm_printf(PM_LOG_ERROR, "%s\n", alpm_strerrorlast());