From e1eff42fe16c281e8fe659bbd86a067fa00d4088 Mon Sep 17 00:00:00 2001
From: Aurelien Foret <aurelien@archlinux.org>
Date: Wed, 16 Mar 2005 21:38:30 +0000
Subject: Added missing extern declaration

---
 src/pacman/conf.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index 89389422..c5df8352 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -34,6 +34,7 @@
 
 #define min(X, Y)  ((X) < (Y) ? (X) : (Y))
 
+extern char *pmo_dbpath;
 extern list_t *pmo_holdpkg;
 extern char *pmo_proxyhost;
 extern unsigned short pmo_proxyport;
@@ -189,10 +190,10 @@ int parseconfig(char *file)
 						if(*ptr == '/') {
 							ptr++;
 						}
-						if(alpm_set_option(PM_OPT_DBPATH, (long)ptr) == -1) {
-							ERR(NL, "failed to set option DBPATH (%s)\n", alpm_strerror(pm_errno));
-							return(1);
+						if(pmo_dbpath) {
+							FREE(pmo_dbpath);
 						}
+						pmo_dbpath = strdup(ptr);
 						vprint("config: dbpath: %s\n", ptr);
 					} else if (!strcmp(key, "LOGFILE")) {
 						if(alpm_set_option(PM_OPT_LOGFILE, (long)ptr) == -1) {
-- 
cgit v1.2.3-54-g00ecf