Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-14 12:06:31 -0600
committerDan McGee <dan@archlinux.org>2010-12-14 12:06:31 -0600
commitc2a73ba989fffb59c1b8ac7edb265a996dfc184d (patch)
treeeb1e648f4e011f4ef49a836c9d81f123dc347313 /lib/libalpm/package.c
parentdbf59a6b141213b0afc962c71347eb83f8bcab73 (diff)
When setting package name, set hash value as well
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c
index 57ab9a67..5b479b4f 100644
--- a/lib/libalpm/package.c
+++ b/lib/libalpm/package.c
@@ -414,6 +414,7 @@ pmpkg_t *_alpm_pkg_dup(pmpkg_t *pkg)
CALLOC(newpkg, 1, sizeof(pmpkg_t), RET_ERR(PM_ERR_MEMORY, NULL));
+ newpkg->name_hash = pkg->name_hash;
STRDUP(newpkg->filename, pkg->filename, RET_ERR(PM_ERR_MEMORY, newpkg));
STRDUP(newpkg->name, pkg->name, RET_ERR(PM_ERR_MEMORY, newpkg));
STRDUP(newpkg->version, pkg->version, RET_ERR(PM_ERR_MEMORY, newpkg));