summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-05 20:57:43 -0600
committerDan McGee <dan@archlinux.org>2007-11-05 21:10:43 -0600
commit52b7fd81f55c3f27823c824da4d70c6edabefb52 (patch)
tree77f73eda0727ec689b57e9a92f6b9625727e47e6 /lib/libalpm/db.c
parentcb04b3a5f3694a1598cf9c368cce30d661730640 (diff)
downloadpacman-52b7fd81f55c3f27823c824da4d70c6edabefb52.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c4
1 files changed, 2 insertions, 2 deletions
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 */