summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/add.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c
index 72ea70c0..eef7aab1 100644
--- a/lib/libalpm/add.c
+++ b/lib/libalpm/add.c
@@ -656,6 +656,9 @@ static int commit_single_pkg(pmpkg_t *newpkg, int pkg_current, int pkg_count,
/* we'll need to save some record for backup checks later */
oldpkg = _alpm_pkg_dup(local);
+ /* make sure all infos are loaded because the database entry
+ * will be removed soon */
+ _alpm_db_read(oldpkg->origin_data.db, oldpkg, INFRQ_ALL);
/* copy over the install reason */
newpkg->reason = alpm_pkg_get_reason(local);