summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/be_local.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-03 19:13:22 +0200
committerDan McGee <dan@archlinux.org>2011-06-03 19:13:22 +0200
commit7f98460e37bc032b58ca7c82e70c357aa39370f8 (patch)
tree386cf7e9cd2045205458d38eeac31a43b98a987b /lib/libalpm/be_local.c
parentc47d25d74be9ce1fbbfb8577687d9f37ba38d98b (diff)
downloadpacman-7f98460e37bc032b58ca7c82e70c357aa39370f8.tar.gz
pacman-7f98460e37bc032b58ca7c82e70c357aa39370f8.tar.xz
Add handle attribute to pmpkg_t struct
Similar to what we just did for the database; this will make it easy to always know what handle a given package originated from. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_local.c')
-rw-r--r--lib/libalpm/be_local.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c
index c470cbad..738bdfeb 100644
--- a/lib/libalpm/be_local.c
+++ b/lib/libalpm/be_local.c
@@ -415,6 +415,7 @@ static int local_db_populate(pmdb_t *db)
pkg->origin = PKG_FROM_LOCALDB;
pkg->origin_data.db = db;
pkg->ops = &local_pkg_ops;
+ pkg->handle = handle;
/* explicitly read with only 'BASE' data, accessors will handle the rest */
if(_alpm_local_db_read(db, pkg, INFRQ_BASE) == -1) {