summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-16 22:06:31 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-03-16 22:06:31 +0000
commit04e195284e0439436143a297a561aef1a6c35b17 (patch)
tree9e52e8b8039246975bcdc13a6293d2a28886da0c /lib/libalpm/add.c
parent2b63d0103db404dd03def3b263c635b23eda065d (diff)
downloadpacman-04e195284e0439436143a297a561aef1a6c35b17.tar.xz
Code cleanup
Diffstat (limited to 'lib/libalpm/add.c')
-rw-r--r--lib/libalpm/add.c5
1 files changed, 3 insertions, 2 deletions
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 {