summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/handle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c
index f336bf2b..a12ac50d 100644
--- a/lib/libalpm/handle.c
+++ b/lib/libalpm/handle.c
@@ -597,6 +597,8 @@ int SYMEXPORT alpm_option_add_assumeinstalled(alpm_handle_t *handle, const alpm_
RET_ERR(handle, ALPM_ERR_WRONG_ARGS, -1));
ASSERT((depcpy = _alpm_dep_dup(dep)), RET_ERR(handle, ALPM_ERR_MEMORY, -1));
+ /* fill in name_hash in case dep was built by hand */
+ depcpy->name_hash = _alpm_hash_sdbm(dep->name);
handle->assumeinstalled = alpm_list_add(handle->assumeinstalled, depcpy);
return 0;
}