index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-01-01 19:14:34 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-01 20:03:24 -0600 |
commit | 553ce8323c23fe3259e45b2708184533158501bd (patch) | |
tree | 8329b3944c47f0700127999b69ccf9710ade8ace /lib/libalpm | |
parent | d18686a5637c50a8229a0a280f81a1eb9ec34ed0 (diff) |
-rw-r--r-- | lib/libalpm/sync.c | 3 |
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 224f5676..dd54ce6c 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -371,8 +371,7 @@ int _alpm_sync_addtarget(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t *dbs_sy if(!_alpm_sync_find(trans->packages, alpm_pkg_get_name(spkg))) { pmpkg_t *dummy = NULL; if(local) { - dummy = _alpm_pkg_new(alpm_pkg_get_name(local), - alpm_pkg_get_version(local)); + dummy = _alpm_pkg_dup(local); if(dummy == NULL) { RET_ERR(PM_ERR_MEMORY, -1); } |