diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-29 12:21:07 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-29 12:21:07 -0500 |
commit | d3d18a42d2a12f65c51dec34608921cec7b42068 (patch) | |
tree | c723c6a943e32fd5fabfddf9d671014f9e65b961 /src | |
parent | 9477abc3591905a20acbfe7b8ce7832617d72701 (diff) | |
parent | 287e8d356e8be8ae4af00e34e25d3f6727945952 (diff) | |
download | pacman-d3d18a42d2a12f65c51dec34608921cec7b42068.tar.xz |
Merge branch 'maint'
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/sync.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c index b12206c4..0b34f045 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -578,10 +578,11 @@ static int sync_list(alpm_list_t *syncs, alpm_list_t *targets) static alpm_list_t *syncfirst(void) { alpm_list_t *i, *res = NULL; + pmdb_t *db_local = alpm_option_get_localdb(); for(i = config->syncfirst; i; i = alpm_list_next(i)) { char *pkgname = alpm_list_getdata(i); - pmpkg_t *pkg = alpm_db_get_pkg(alpm_option_get_localdb(), pkgname); + pmpkg_t *pkg = alpm_db_get_pkg(db_local, pkgname); if(pkg == NULL) { continue; } |