diff options
author | Dan McGee <dan@archlinux.org> | 2007-10-29 21:06:13 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-10-29 21:06:13 -0500 |
commit | dede5371e7c11ceb6ea36ba770672d61aa9b9002 (patch) | |
tree | 48026231477942f0c2e06ff44c7974f5f99ac622 /lib/libalpm/package.c | |
parent | 74aa54a1f6db109311e9bdc8cae64a2a26a2b860 (diff) |
Copy pmdelta_t objects in _alpm_pkg_dup()
This was forgotten in the original set of patches.
CC: Nathan Jones <nathanj@insightbb.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r-- | lib/libalpm/package.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 9c166a50..5103a382 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -46,6 +46,7 @@ #include "error.h" #include "db.h" #include "cache.h" +#include "delta.h" #include "provide.h" #include "handle.h" #include "alpm.h" @@ -703,6 +704,7 @@ pmpkg_t *_alpm_pkg_dup(pmpkg_t *pkg) newpkg->groups = alpm_list_strdup(alpm_pkg_get_groups(pkg)); newpkg->provides = alpm_list_strdup(alpm_pkg_get_provides(pkg)); newpkg->replaces = alpm_list_strdup(alpm_pkg_get_replaces(pkg)); + newpkg->deltas = alpm_list_copy_data(alpm_pkg_get_deltas(pkg)); /* internal */ if(newpkg->origin == PKG_FROM_FILE) { newpkg->origin_data.file = strdup(pkg->origin_data.file); |