index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-11-17 21:47:55 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-11-17 21:47:55 -0600 |
commit | f7192b595881103f145a118d63d1b342ffd740b4 (patch) | |
tree | 85a378fd5bf5b665cc48954eaff826f903543826 /src | |
parent | 2890114600baefb6cb1dde513ca3107258b64c92 (diff) |
-rw-r--r-- | src/pacman/sync.c | 3 |
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index 8d0c529a..00e477af 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")); |