From d30333756a9114cb940cee3d57b99de018dea41b Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Tue, 29 Mar 2005 20:58:43 +0000 Subject: put back 3 _alpm_log() calls --- lib/libalpm/db.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/libalpm') diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c index f57a1cc6..88126f4d 100644 --- a/lib/libalpm/db.c +++ b/lib/libalpm/db.c @@ -456,8 +456,7 @@ int db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq) if(inforeq & INFRQ_DESC) { snprintf(path, PATH_MAX, "%s/desc", topdir); if((fp = fopen(path, "w")) == NULL) { - /* ORE - perror("db_write");*/ + _alpm_log(PM_LOG_ERROR, "db_write: could not open file %s/desc", db->treename); goto error; } fputs("%NAME%\n", fp); @@ -494,8 +493,7 @@ int db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq) if(inforeq & INFRQ_FILES) { snprintf(path, PATH_MAX, "%s/files", topdir); if((fp = fopen(path, "w")) == NULL) { - /* ORE - perror("db_write"); */ + _alpm_log(PM_LOG_ERROR, "db_write: could not open file %s/files", db->treename); goto error; } fputs("%FILES%\n", fp); @@ -515,8 +513,7 @@ int db_write(pmdb_t *db, pmpkg_t *info, unsigned int inforeq) if(inforeq & INFRQ_DEPENDS) { snprintf(path, PATH_MAX, "%s/depends", topdir); if((fp = fopen(path, "w")) == NULL) { - /* ORE - perror("db_write"); */ + _alpm_log(PM_LOG_ERROR, "could not open file %s/depends", db->treename); goto error; } fputs("%DEPENDS%\n", fp); -- cgit v1.2.3-24-g4f1b