From 7edeb276b63efeea7e8f266dfee792e2709ba412 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 29 Jul 2011 15:35:59 -0500 Subject: Keep track of explicitly added and removed packages This allows us to sort the output list by showing all pulled dependencies first, followed by the explicitly specified targets. Signed-off-by: Dan McGee --- src/pacman/conf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/pacman/conf.c') diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 337522b8..fe2ebb3e 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -68,6 +68,9 @@ int config_free(config_t *oldconfig) return -1; } + alpm_list_free(oldconfig->explicit_adds); + alpm_list_free(oldconfig->explicit_removes); + FREELIST(oldconfig->holdpkg); FREELIST(oldconfig->syncfirst); FREELIST(oldconfig->ignorepkg); @@ -84,7 +87,6 @@ int config_free(config_t *oldconfig) free(oldconfig->print_format); free(oldconfig->arch); free(oldconfig); - oldconfig = NULL; return 0; } -- cgit v1.2.3-54-g00ecf