summaryrefslogtreecommitdiff
path: root/src/problems.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-04-17 14:18:42 +0200
committerMichael Schroeder <mls@suse.de>2014-04-17 14:18:42 +0200
commit3ef3b1fc2683e955702472e838ff02bf2f68954a (patch)
treee617e75a90aef178ebeee77e510b2daada42d0d2 /src/problems.c
parent1a4fc4d68c2a8bd5d027bc2f76d3bfc2c187efea (diff)
downloadlibsolv-3ef3b1fc2683e955702472e838ff02bf2f68954a.tar.gz
libsolv-3ef3b1fc2683e955702472e838ff02bf2f68954a.tar.bz2
libsolv-3ef3b1fc2683e955702472e838ff02bf2f68954a.zip
implement SOLVER_FLAG_BREAK_ORPHANS
Diffstat (limited to 'src/problems.c')
-rw-r--r--src/problems.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/problems.c b/src/problems.c
index 7258c04..bb00aa6 100644
--- a/src/problems.c
+++ b/src/problems.c
@@ -160,6 +160,10 @@ enableweakrules(Solver *solv)
continue;
solver_enablerule(solv, r);
}
+ /* make sure broken orphan rules stay disabled */
+ if (solv->brokenorphanrules)
+ for (i = 0; i < solv->brokenorphanrules->count; i++)
+ solver_disablerule(solv, solv->rules + solv->brokenorphanrules->elements[i]);
}