mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 09:21:53 -05:00
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
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user