From 52b7fd81f55c3f27823c824da4d70c6edabefb52 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 5 Nov 2007 20:57:43 -0600 Subject: libalpm/db.c: change two warnings to errors These two warnings really indicate failure, so the message they print should do so as well. Signed-off-by: Dan McGee --- lib/libalpm/db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index 8c36c310..c06db3b1 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -694,7 +694,7 @@ pmdb_t *_alpm_db_register_local(void) /* make sure the database directory exists */ dbpath = alpm_option_get_dbpath(); if(!dbpath) { - _alpm_log(PM_LOG_WARNING, _("database path is undefined\n")); + _alpm_log(PM_LOG_ERROR, _("database path is undefined\n")); RET_ERR(PM_ERR_DB_OPEN, NULL); } snprintf(path, PATH_MAX, "%slocal", dbpath); @@ -745,7 +745,7 @@ pmdb_t *_alpm_db_register_sync(const char *treename) /* make sure the database directory exists */ dbpath = alpm_option_get_dbpath(); if(!dbpath) { - _alpm_log(PM_LOG_WARNING, _("database path is undefined\n")); + _alpm_log(PM_LOG_ERROR, _("database path is undefined\n")); RET_ERR(PM_ERR_DB_OPEN, NULL); } /* all sync DBs now reside in the sync/ subdir of the dbpath */ -- cgit v1.2.3-24-g4f1b