Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/package.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h
index 96a3200a..636512bb 100644
--- a/lib/libalpm/package.h
+++ b/lib/libalpm/package.h
@@ -84,6 +84,14 @@ struct __pmpkg_t {
/* internal */
pmpkgfrom_t origin;
void *data;
+ /* TODO replace 'data' with this:
+ origin == PKG_FROM_CACHE, use pkg->origin_data.db
+ origin == PKG_FROM_FILE, use pkg->origin_data.fd
+ union {
+ int fd;
+ pmdb_t *db;
+ } origin_data;
+ */
pmdbinfrq_t infolevel;
};