projects
/
platform
/
upstream
/
libsolv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.6.13
[platform/upstream/libsolv.git]
/
src
/
solver.h
diff --git
a/src/solver.h
b/src/solver.h
index
3d63b6f
..
2ae9c8d
100644
(file)
--- a/
src/solver.h
+++ b/
src/solver.h
@@
-39,7
+39,7
@@
struct _Solver {
Repo *installed; /* copy of pool->installed */
/* list of rules, ordered
Repo *installed; /* copy of pool->installed */
/* list of rules, ordered
- *
rpm
rules first, then features, updates, jobs, learnt
+ *
pkg
rules first, then features, updates, jobs, learnt
* see start/end offsets below
*/
Rule *rules; /* all rules */
* see start/end offsets below
*/
Rule *rules; /* all rules */
@@
-49,7
+49,7
@@
struct _Solver {
/* start/end offset for rule 'areas' */
/* start/end offset for rule 'areas' */
- Id
rpmrules_end; /* [Offset] rpm
rules end */
+ Id
pkgrules_end; /* [Offset] dep
rules end */
Id featurerules; /* feature rules start/end */
Id featurerules_end;
Id featurerules; /* feature rules start/end */
Id featurerules_end;
@@
-70,6
+70,10
@@
struct _Solver {
Id bestrules_end;
Id *bestrules_pkg;
Id bestrules_end;
Id *bestrules_pkg;
+ Id yumobsrules; /* rules from yum obsoletes handling */
+ Id yumobsrules_end;
+ Id *yumobsrules_info; /* the dependency for each rule */
+
Id choicerules; /* choice rules (always weak) */
Id choicerules_end;
Id *choicerules_ref;
Id choicerules; /* choice rules (always weak) */
Id choicerules_end;
Id *choicerules_ref;
@@
-151,6
+155,7
@@
struct _Solver {
int allowvendorchange; /* allow to change vendor of installed solvables */
int allowuninstall; /* allow removal of installed solvables */
int noupdateprovide; /* true: update packages needs not to provide old package */
int allowvendorchange; /* allow to change vendor of installed solvables */
int allowuninstall; /* allow removal of installed solvables */
int noupdateprovide; /* true: update packages needs not to provide old package */
+ int needupdateprovide; /* true: update packages must provide old package */
int dosplitprovides; /* true: consider legacy split provides */
int dontinstallrecommended; /* true: do not install recommended packages */
int addalreadyrecommended; /* true: also install recommended packages that were already recommended by the installed packages */
int dosplitprovides; /* true: consider legacy split provides */
int dontinstallrecommended; /* true: do not install recommended packages */
int addalreadyrecommended; /* true: also install recommended packages that were already recommended by the installed packages */
@@
-161,6
+166,7
@@
struct _Solver {
int bestobeypolicy; /* true: stay in policy with the best rules */
int noautotarget; /* true: do not assume targeted for up/dup jobs that contain no installed solvable */
int focus_installed; /* true: resolve update rules first */
int bestobeypolicy; /* true: stay in policy with the best rules */
int noautotarget; /* true: do not assume targeted for up/dup jobs that contain no installed solvable */
int focus_installed; /* true: resolve update rules first */
+ int do_yum_obsoletes; /* true: add special yumobs rules */
Map dupmap; /* dup these packages*/
int dupmap_all; /* dup all packages */
Map dupmap; /* dup these packages*/
int dupmap_all; /* dup all packages */
@@
-184,11
+190,15
@@
struct _Solver {
Queue *installsuppdepq; /* deps from the install namespace provides hack */
Queue *installsuppdepq; /* deps from the install namespace provides hack */
- Queue addedmap_deduceq; /* deduce addedmap from
rpm
rules */
+ Queue addedmap_deduceq; /* deduce addedmap from
pkg
rules */
Id *instbuddy; /* buddies of installed packages */
int keep_orphans; /* how to treat orphans */
int break_orphans; /* how to treat orphans */
Queue *brokenorphanrules; /* broken rules of orphaned packages */
Id *instbuddy; /* buddies of installed packages */
int keep_orphans; /* how to treat orphans */
int break_orphans; /* how to treat orphans */
Queue *brokenorphanrules; /* broken rules of orphaned packages */
+
+ Map allowuninstallmap; /* ok to uninstall those */
+ int allowuninstall_all;
+
#endif /* LIBSOLV_INTERNAL */
};
#endif /* LIBSOLV_INTERNAL */
};
@@
-217,7
+227,8
@@
typedef struct _Solver Solver;
#define SOLVER_DISTUPGRADE 0x0700
#define SOLVER_VERIFY 0x0800
#define SOLVER_DROP_ORPHANED 0x0900
#define SOLVER_DISTUPGRADE 0x0700
#define SOLVER_VERIFY 0x0800
#define SOLVER_DROP_ORPHANED 0x0900
-#define SOLVER_USERINSTALLED 0x0a00
+#define SOLVER_USERINSTALLED 0x0a00
+#define SOLVER_ALLOWUNINSTALL 0x0b00
#define SOLVER_JOBMASK 0xff00
#define SOLVER_JOBMASK 0xff00
@@
-289,9
+300,16
@@
typedef struct _Solver Solver;
#define SOLVER_FLAG_KEEP_ORPHANS 18
#define SOLVER_FLAG_BREAK_ORPHANS 19
#define SOLVER_FLAG_FOCUS_INSTALLED 20
#define SOLVER_FLAG_KEEP_ORPHANS 18
#define SOLVER_FLAG_BREAK_ORPHANS 19
#define SOLVER_FLAG_FOCUS_INSTALLED 20
+#define SOLVER_FLAG_YUM_OBSOLETES 21
+#define SOLVER_FLAG_NEED_UPDATEPROVIDE 22
-#define GET_USERINSTALLED_NAMES (1 << 0) /* package names instead
i
f ids */
+#define GET_USERINSTALLED_NAMES (1 << 0) /* package names instead
o
f ids */
#define GET_USERINSTALLED_INVERTED (1 << 1) /* autoinstalled */
#define GET_USERINSTALLED_INVERTED (1 << 1) /* autoinstalled */
+#define GET_USERINSTALLED_NAMEARCH (1 << 2) /* package/arch tuples instead of ids */
+
+#define SOLVER_ALTERNATIVE_TYPE_RULE 1
+#define SOLVER_ALTERNATIVE_TYPE_RECOMMENDS 2
+#define SOLVER_ALTERNATIVE_TYPE_SUGGESTS 3
extern Solver *solver_create(Pool *pool);
extern void solver_free(Solver *solv);
extern Solver *solver_create(Pool *pool);
extern void solver_free(Solver *solv);
@@
-314,6
+332,8
@@
extern void pool_add_userinstalled_jobs(Pool *pool, Queue *q, Queue *job, int fl
extern int solver_describe_decision(Solver *solv, Id p, Id *infop);
extern void solver_describe_weakdep_decision(Solver *solv, Id p, Queue *whyq);
extern int solver_describe_decision(Solver *solv, Id p, Id *infop);
extern void solver_describe_weakdep_decision(Solver *solv, Id p, Queue *whyq);
+extern int solver_alternatives_count(Solver *solv);
+extern int solver_get_alternative(Solver *solv, Id alternative, Id *idp, Id *fromp, Id *chosenp, Queue *choices, int *levelp);
extern void solver_calculate_multiversionmap(Pool *pool, Queue *job, Map *multiversionmap);
extern void solver_calculate_noobsmap(Pool *pool, Queue *job, Map *multiversionmap); /* obsolete */
extern void solver_calculate_multiversionmap(Pool *pool, Queue *job, Map *multiversionmap);
extern void solver_calculate_noobsmap(Pool *pool, Queue *job, Map *multiversionmap); /* obsolete */
@@
-328,6
+348,8
@@
extern int pool_isemptyupdatejob(Pool *pool, Id how, Id what);
extern const char *solver_select2str(Pool *pool, Id select, Id what);
extern const char *pool_job2str(Pool *pool, Id how, Id what, Id flagmask);
extern const char *solver_select2str(Pool *pool, Id select, Id what);
extern const char *pool_job2str(Pool *pool, Id how, Id what, Id flagmask);
+extern const char *solver_alternative2str(Solver *solv, int type, Id id, Id from);
+
/* iterate over all literals of a rule */
#define FOR_RULELITERALS(l, pp, r) \
/* iterate over all literals of a rule */
#define FOR_RULELITERALS(l, pp, r) \