summaryrefslogtreecommitdiff
path: root/src/apk_solver_data.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-06-19 21:39:01 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-06-19 21:39:01 +0300
commit17145f82aeba9a9fdfdf03cb4f74cb41cf3ab913 (patch)
treed97030f3ce9abe46670952a35e1eba056177523c /src/apk_solver_data.h
parent6da083fc24e4f1ef0363957074148d1bc11cef83 (diff)
downloadapk-tools-17145f82aeba9a9fdfdf03cb4f74cb41cf3ab913.tar.gz
apk-tools-17145f82aeba9a9fdfdf03cb4f74cb41cf3ab913.tar.bz2
apk-tools-17145f82aeba9a9fdfdf03cb4f74cb41cf3ab913.tar.xz
apk-tools-17145f82aeba9a9fdfdf03cb4f74cb41cf3ab913.zip
solver: fix package deletion to consier provides properly
Diffstat (limited to 'src/apk_solver_data.h')
-rw-r--r--src/apk_solver_data.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/apk_solver_data.h b/src/apk_solver_data.h
index cf7a3bd..7853af5 100644
--- a/src/apk_solver_data.h
+++ b/src/apk_solver_data.h
@@ -17,10 +17,17 @@
#include "apk_provider_data.h"
struct apk_solver_name_state {
- struct list_head dirty_list;
- struct list_head unresolved_list;
struct apk_provider chosen;
-
+ union {
+ struct {
+ struct list_head dirty_list;
+ struct list_head unresolved_list;
+ };
+ struct {
+ struct apk_name *installed_name;
+ struct apk_package *installed_pkg;
+ };
+ };
unsigned short requirers;
unsigned short merge_depends;
unsigned short merge_provides;