summaryrefslogtreecommitdiff
path: root/src/pacman/pacman.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-07-22 12:12:18 -0500
committerDan McGee <dan@archlinux.org>2011-07-27 12:46:15 -0500
commit9929a34a6d493c94bd176b66198bdbd734678043 (patch)
tree6ce511c1809183651732d4307aae4ba3c513a17b /src/pacman/pacman.h
parentccdb2fa800f3e89641d371056961fa1d654f363d (diff)
downloadpacman-9929a34a6d493c94bd176b66198bdbd734678043.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.h')
-rw-r--r--src/pacman/pacman.h1
1 files changed, 1 insertions, 0 deletions
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);