From 04e195284e0439436143a297a561aef1a6c35b17 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Wed, 16 Mar 2005 22:06:31 +0000 Subject: Code cleanup --- lib/libalpm/add.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/add.c') diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index 4d1bdd1f..c5745c30 100644 --- a/lib/libalpm/add.c +++ b/lib/libalpm/add.c @@ -311,8 +311,9 @@ int add_commit(pmdb_t *db, pmtrans_t *trans) /* Figure out whether this package was installed explicitly by the user * or installed as a dependency for another package */ - /* ORE info->reason = PM_PKG_REASON_EXPLICIT; + /* ORE + only relevant for sync operations? if(pm_list_is_strin(dependonly, info->data)) { info->reason = PM_PKG_REASON_DEPEND; }*/ @@ -343,7 +344,7 @@ int add_commit(pmdb_t *db, pmtrans_t *trans) for(lp = provides; lp; lp = lp->next) { lp->data = NULL; } - pm_list_free(provides); + FREELIST(provides); continue; } } else { -- cgit v1.2.3