index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-12-02 22:15:02 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-12-02 22:15:02 -0600 |
commit | 61c6552862345cb155903cd1566f1cef5c527a94 (patch) | |
tree | a9c85c46a4ccd5cd8c001689541706e9287e4c50 /src/pacman/sync.c | |
parent | 9394f229a0328228e810b7d4588b24643b42df6a (diff) | |
parent | a1f7c83dbf3bce492163362d2896e3a4176be616 (diff) |
-rw-r--r-- | src/pacman/sync.c | 3 |
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 63397aa3..e3a772de 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -551,6 +551,7 @@ static int sync_trans(alpm_list_t *targets) int retval = 0; alpm_list_t *data = NULL; alpm_list_t *sync_dbs = alpm_option_get_syncdbs(); + alpm_list_t *packages = NULL; /* Step 1: create a new transaction... */ if(trans_init(PM_TRANS_TYPE_SYNC, config->flags) == -1) { @@ -659,7 +660,7 @@ static int sync_trans(alpm_list_t *targets) goto cleanup; } - alpm_list_t *packages = alpm_trans_get_pkgs(); + packages = alpm_trans_get_pkgs(); if(packages == NULL) { /* nothing to do: just exit without complaining */ printf(_(" local database is up to date\n")); |