diff options
author | Michael Schroeder <mls@suse.de> | 2013-02-04 15:43:27 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-02-04 15:43:27 +0100 |
commit | 41c5eb1cdfff8c8ed92194eafbb3070c86350c4e (patch) | |
tree | 301835a1917ec9fc0b9145214ca4f27d60d366bf /src/rules.c | |
parent | 9eb59bbb93038fce3233052d93f7f50521ebfef5 (diff) | |
download | libsolv-41c5eb1cdfff8c8ed92194eafbb3070c86350c4e.tar.gz libsolv-41c5eb1cdfff8c8ed92194eafbb3070c86350c4e.tar.bz2 libsolv-41c5eb1cdfff8c8ed92194eafbb3070c86350c4e.zip |
make it possible to re-run an existing solver (re-using the rpm rules)
Diffstat (limited to 'src/rules.c')
-rw-r--r-- | src/rules.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rules.c b/src/rules.c index 729268d..11634e9 100644 --- a/src/rules.c +++ b/src/rules.c @@ -377,6 +377,12 @@ solver_addrule(Solver *solv, Id p, Id d) return r; } +void +solver_shrinkrules(Solver *solv, int nrules) +{ + solv->nrules = nrules; + solv->rules = solv_extend_resize(solv->rules, solv->nrules, sizeof(Rule), RULES_BLOCK); +} /****************************************************************************** *** |