summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-10-30 03:06:13 +0100
committerDan McGee <dan@archlinux.org>2007-10-30 03:06:13 +0100
commitdede5371e7c11ceb6ea36ba770672d61aa9b9002 (patch)
tree48026231477942f0c2e06ff44c7974f5f99ac622
parent74aa54a1f6db109311e9bdc8cae64a2a26a2b860 (diff)
downloadpacman-dede5371e7c11ceb6ea36ba770672d61aa9b9002.tar.gz
pacman-dede5371e7c11ceb6ea36ba770672d61aa9b9002.tar.xz
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>
-rw-r--r--lib/libalpm/package.c2
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);