diff options
author | Michael Schroeder <mls@suse.de> | 2009-06-04 11:42:08 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2009-06-04 11:42:08 +0200 |
commit | bef8a9bbc1f1c82577faab89e6bdc6ad35a3a0e9 (patch) | |
tree | 8c9ef402851d8e5e74f5eb9669ce91dd251f55ae /src/solver.h | |
parent | c1960edee249cffcfd48a311c02ba99b2088adf4 (diff) | |
download | libsolv-bef8a9bbc1f1c82577faab89e6bdc6ad35a3a0e9.tar.gz libsolv-bef8a9bbc1f1c82577faab89e6bdc6ad35a3a0e9.tar.bz2 libsolv-bef8a9bbc1f1c82577faab89e6bdc6ad35a3a0e9.zip |
- move some flags describing the rpm from solver to pool
- change prune_to_best_version to just need a pool pointer
- create a new type containing transaction data
- change transaction code to work with a pool, not a solver
- add solver_calculate_noobsmap() helper function that calculates
the noobsoletes map from a solver job
Diffstat (limited to 'src/solver.h')
-rw-r--r-- | src/solver.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/solver.h b/src/solver.h index 08e6101..3166602 100644 --- a/src/solver.h +++ b/src/solver.h @@ -42,9 +42,7 @@ typedef struct _Solver { Pool *pool; Queue job; /* copy of the job we're solving */ - Queue transaction; /* solver result */ - Queue transaction_info; /* transaction obsoletes info */ - Id *transaction_installed; /* data for installed packages */ + Transaction trans; /* calculated transaction */ Repo *installed; /* copy of pool->installed */ @@ -142,10 +140,6 @@ typedef struct _Solver { int allowvendorchange; /* allow to change vendor of installed solvables */ int allowuninstall; /* allow removal of installed solvables */ int updatesystem; /* update all packages to the newest version */ - int allowvirtualconflicts; /* false: conflicts on package name, true: conflicts on package provides */ - int allowselfconflicts; /* true: packages wich conflict with itself are installable */ - int obsoleteusesprovides; /* true: obsoletes are matched against provides, not names */ - int implicitobsoleteusesprovides; /* true: implicit obsoletes due to same name are matched against provides, not names */ int noupdateprovide; /* true: update packages needs not to provide old package */ int dosplitprovides; /* true: consider legacy split provides */ int dontinstallrecommended; /* true: do not install recommended packages */ @@ -275,6 +269,8 @@ extern void solver_reset(Solver *solv); extern int solver_dep_installed(Solver *solv, Id dep); extern int solver_splitprovides(Solver *solv, Id dep); +extern void solver_calculate_noobsmap(Pool *pool, Map *noobsmap, Queue *job); + /* obsolete */ extern SolverRuleinfo solver_problemruleinfo(Solver *solv, Queue *job, Id rid, Id *depp, Id *sourcep, Id *targetp); |