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>
This commit is contained in:
parent
74aa54a1f6
commit
dede5371e7
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,7 @@
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "db.h"
|
#include "db.h"
|
||||||
#include "cache.h"
|
#include "cache.h"
|
||||||
|
#include "delta.h"
|
||||||
#include "provide.h"
|
#include "provide.h"
|
||||||
#include "handle.h"
|
#include "handle.h"
|
||||||
#include "alpm.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->groups = alpm_list_strdup(alpm_pkg_get_groups(pkg));
|
||||||
newpkg->provides = alpm_list_strdup(alpm_pkg_get_provides(pkg));
|
newpkg->provides = alpm_list_strdup(alpm_pkg_get_provides(pkg));
|
||||||
newpkg->replaces = alpm_list_strdup(alpm_pkg_get_replaces(pkg));
|
newpkg->replaces = alpm_list_strdup(alpm_pkg_get_replaces(pkg));
|
||||||
|
newpkg->deltas = alpm_list_copy_data(alpm_pkg_get_deltas(pkg));
|
||||||
/* internal */
|
/* internal */
|
||||||
if(newpkg->origin == PKG_FROM_FILE) {
|
if(newpkg->origin == PKG_FROM_FILE) {
|
||||||
newpkg->origin_data.file = strdup(pkg->origin_data.file);
|
newpkg->origin_data.file = strdup(pkg->origin_data.file);
|
||||||
|
|
Loading…
Add table
Reference in a new issue