Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-11 09:42:52 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-02-11 09:42:52 +0000
commitb824ee9608257320cda836a4c0b59ba44ff9b39c (patch)
tree7680b28498f82fab95b666e04ba2b5e2b0a99af9 /lib
parent3a82992b599b675a2a4f8a555808da1cb5f9272f (diff)
added more logs
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/add.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index a7fb922d..fc4d322a 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -503,7 +503,7 @@ int add_commit(pmtrans_t *trans, pmdb_t *db)
_alpm_log(PM_LOG_DEBUG, "action: installing new file");
installnew = 1;
} else {
- _alpm_log(PM_LOG_DEBUG, "action: leaving file in place, installing new one as .pacnew\n");
+ _alpm_log(PM_LOG_DEBUG, "action: leaving file in place, installing new one as .pacnew");
strncat(expath, ".pacnew", PATH_MAX);
installnew = 1;
_alpm_log(PM_LOG_WARNING, "extracting %s as %s.pacnew", pathname, pathname);
@@ -511,7 +511,7 @@ int add_commit(pmtrans_t *trans, pmdb_t *db)
}
if(installnew) {
- /*_alpm_log(PM_LOG_FLOW2, " %s", expath);*/
+ _alpm_log(PM_LOG_FLOW2, "extracting %s", pathname);
if(_alpm_copyfile(temp, expath)) {
_alpm_log(PM_LOG_ERROR, "could not copy %s to %s (%s)", temp, pathname, strerror(errno));
errors++;
@@ -545,7 +545,7 @@ int add_commit(pmtrans_t *trans, pmdb_t *db)
}
if(tar_extract_file(tar, expath)) {
_alpm_log(PM_LOG_ERROR, "could not extract %s (%s)", pathname, strerror(errno));
- alpm_logaction("could not extract %s (%s)", pathname, strerror(errno));
+ alpm_logaction("error: could not extract %s (%s)", pathname, strerror(errno));
errors++;
}
/* calculate an md5 hash if this is in info->backup */
@@ -556,6 +556,7 @@ int add_commit(pmtrans_t *trans, pmdb_t *db)
if(!file) continue;
if(!strcmp(file, pathname)) {
+ _alpm_log(PM_LOG_DEBUG, "appending backup entry");
snprintf(path, PATH_MAX, "%s%s", handle->root, file);
md5 = MDFile(path);
/* 32 for the hash, 1 for the terminating NULL, and 1 for the tab delimiter */