summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-04-13 19:57:23 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-04-13 19:57:23 +0000
commit45c7e10afc98ef66177841fe2b25b98a6200fbbf (patch)
tree97423823e9dec72a9ef84b2e9935743b4f84bd2b /lib
parent3fa2b0e3bdd8ea82b615a84b193b75204fe797f4 (diff)
downloadpacman-45c7e10afc98ef66177841fe2b25b98a6200fbbf.tar.xz
updated a log
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/add.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index bd6b1724..15ebd089 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -120,12 +120,12 @@ int add_prepare(pmdb_t *db, pmtrans_t *trans, PMList **data)
{
PMList *lp;
+ *data = NULL;
+
ASSERT(db != NULL, RET_ERR(PM_ERR_DB_NULL, -1));
ASSERT(trans != NULL, RET_ERR(PM_ERR_TRANS_NULL, -1));
ASSERT(data != NULL, RET_ERR(PM_ERR_WRONG_ARGS, -1));
- *data = NULL;
-
/* Check dependencies
*/
@@ -265,7 +265,7 @@ int add_commit(pmdb_t *db, pmtrans_t *trans)
if(oldpkg) {
pmtrans_t *tr;
- _alpm_log(PM_LOG_FLOW1, "removing old package first");
+ _alpm_log(PM_LOG_FLOW1, "removing old package first (%s-%s)", oldpkg->name, oldpkg->version);
tr = trans_new();
if(tr == NULL) {
RET_ERR(PM_ERR_TRANS_ABORT, -1);