diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 20:58:43 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-03-29 20:58:43 +0000 |
commit | d30333756a9114cb940cee3d57b99de018dea41b (patch) | |
tree | d0f9cb77e4040b7376608f1885dfd4c95270af6c /lib/libalpm | |
parent | 23cd8d87cbf5cfa4e99fea0a802cbbf665828c84 (diff) | |
download | pacman-d30333756a9114cb940cee3d57b99de018dea41b.tar.xz |
put back 3 _alpm_log() calls
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/db.c | 9 |
1 files changed, 3 insertions, 6 deletions
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); |