From b308f06a3a3d368c38b0d109b7e6c1c639127148 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Thu, 14 Dec 2006 05:23:08 +0000 Subject: * Dan McGee's makepkg updates http://www.archlinux.org/pipermail/pacman-dev/2006-December/000792.html * configure fixes (CFLAGS) * no-strict-aliasing hacks until full C99 compliance * --with-config-file configure option --- src/pacman/pacman.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 0f55ec43..8cfe39bb 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -57,8 +57,6 @@ #include "sync.h" #include "deptest.h" -#define PACCONF "/etc/pacman.conf" - #if defined(__OpenBSD__) || defined(__APPLE__) #define BSD #endif @@ -506,6 +504,7 @@ int main(int argc, char *argv[]) if(config->configfile == NULL) { config->configfile = strdup(PACCONF); } + if(alpm_parse_config(config->configfile, cb_db_register, "") != 0) { ERR(NL, _("failed to parse config (%s)\n"), alpm_strerror(pm_errno)); cleanup(1); -- cgit v1.2.3-70-g09d2