From 9929a34a6d493c94bd176b66198bdbd734678043 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 22 Jul 2011 12:12:18 -0500 Subject: Remove duplicate code shared between sync and upgrade Pacman did a great job of having almost (but not quite) duplicate code paths through the sync and upgrade code. We can use the same logic in both upgrade in sync once the targets are resolved, so extract a function and delete a bunch of code. Signed-off-by: Dan McGee --- src/pacman/pacman.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pacman/pacman.h') diff --git a/src/pacman/pacman.h b/src/pacman/pacman.h index 762e112d..8bb9cb27 100644 --- a/src/pacman/pacman.h +++ b/src/pacman/pacman.h @@ -32,6 +32,7 @@ int pacman_query(alpm_list_t *targets); int pacman_remove(alpm_list_t *targets); /* sync.c */ int pacman_sync(alpm_list_t *targets); +int sync_prepare_execute(void); /* upgrade.c */ int pacman_upgrade(alpm_list_t *targets); -- cgit v1.2.3-54-g00ecf