diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2008-08-19 01:02:40 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-08-20 01:42:51 +0200 |
commit | 232b838a54e689800267e1b98ace207bd442b8cd (patch) | |
tree | 502b02869c2d0bffe49ffb0b364bbbdff03963f0 /lib | |
parent | fb5c5086e123690a113c0e8dc85848aa2ba61f54 (diff) | |
download | pacman-232b838a54e689800267e1b98ace207bd442b8cd.tar.gz pacman-232b838a54e689800267e1b98ace207bd442b8cd.tar.xz |
libalpm/add.c : ensure the old pkg was fully loaded.
This fixes FS#11218.
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/add.c | 3 |
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); |