diff options
author | Dan McGee <dan@archlinux.org> | 2011-07-22 19:12:18 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-07-27 19:46:15 +0200 |
commit | 9929a34a6d493c94bd176b66198bdbd734678043 (patch) | |
tree | 6ce511c1809183651732d4307aae4ba3c513a17b /src/pacman/pacman.h | |
parent | ccdb2fa800f3e89641d371056961fa1d654f363d (diff) | |
download | pacman-9929a34a6d493c94bd176b66198bdbd734678043.tar.gz pacman-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.h | 1 |
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); |