summaryrefslogtreecommitdiff
path: root/src/rules.c
AgeCommit message (Collapse)AuthorFilesLines
2016-10-27Imported Upstream version 0.6.9upstream/0.6.9DongHun Kwak1-2/+14
Change-Id: Icf4a1aa6525f6c2bfc9da6f3ba1609728f39a073 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
2016-10-27Imported Upstream version 0.6.6upstream/0.6.6DongHun Kwak1-64/+64
Change-Id: I39261d63e28e2f057203bd11bd6b1cbb83523fab Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
2016-10-27Imported Upstream version 0.6.5upstream/0.6.5DongHun Kwak1-2/+248
Change-Id: If69a2170a61800e3f778ec1f78364531c9642950 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
2014-07-08fix instbuddy generation codeMichael Schroeder1-2/+2
we iterated over the wrong array, thus the rpm -> buddy link did not work.
2014-04-22obey droporphaned map in keep_orhans modeMichael Schroeder1-2/+2
2014-04-17implement SOLVER_FLAG_BREAK_ORPHANSMichael Schroeder1-1/+93
2014-04-16add KEEP_ORPHANS and BREAK_ORPHANS solver flagsMichael Schroeder1-1/+8
BREAK_ORPHANS is not implemented yet
2014-04-04[ABI BREAKAGE] add support for SHA224/384/512Michael Schroeder1-3/+5
We also use this to reorder knownid.h, thus breaking the libsolv ABI. Next step is to bump the version.
2014-03-27fix getrpmruleinfos for linked packagesMichael Schroeder1-2/+6
2014-03-25improve solver_addrule a bitMichael Schroeder1-38/+30
2014-03-25Don't put -SYSTEMSOLVABLE into conflictsMichael Schroeder1-1/+4
2014-03-24ignore negative assertions in choice rule generationMichael Schroeder1-1/+1
2014-03-24small optimization for solver_addupdateruleMichael Schroeder1-37/+45
hopefully also reduces pool_queuetowhatprovides calls and thus the memory footprint.
2014-03-10implement complex deps handling in cleandeps/unneeded calculationMichael Schroeder1-37/+186
2014-03-05add support for complex dependenciesMichael Schroeder1-0/+177
2014-02-21fix bug in solver_get_unneeded that could lead to an endless loopMichael Schroeder1-3/+3
2014-02-12refactor a bitMichael Schroeder1-68/+54
- clean up comments in rule generation - refactor is_otherproviders_dep helper function - treat COND as AND in supplements handling - special case OR in supplements handling so that AND functionality does not get lost
2014-02-04do not create update/feature rules for applications or patternsMichael Schroeder1-5/+30
Also rename "multiversionupdaters" to "specialupdaters".
2013-12-17change infarch rule generation so that it does not break installed lock-stepsMichael Schroeder1-7/+75
2013-12-17fix typo in solver_addbestrulesMichael Schroeder1-1/+1
2013-12-04implement lock-stepping for infarch packages in implicitobsoleteusescolors modeMichael Schroeder1-1/+20
Makeing the infarch rules weak when implicitobsoleteusescolors is set is too simplistic, lets hope that the lock-step approach is good enough.
2013-10-17simplify packagelink code a bitMichael Schroeder1-28/+17
2013-10-16remove trailing whitespaceMichael Schroeder1-42/+42
2013-10-16refactor most of the linked pkg code into a seperate source fileMichael Schroeder1-201/+10
2013-10-15get rid of unused variables if ENABLE_LINKED_PKGS is not setMichael Schroeder1-0/+2
2013-10-15make linked package support a condition build optionMichael Schroeder1-0/+17
2013-10-14Extend product link support to patterns/applicationsMichael Schroeder1-33/+348
Also implement own product link code, in case the nscallback does not return a buddy. Includes two bugfix: the ruleinfo introspection now know about links, and there's an extra link pass to pick up linked packages.
2013-09-23do not add back cleandeps_updatepkgs packages [bnc#841781]Michael Schroeder1-0/+9
2013-09-13add solver_rule2rules: learnt rule introspectionMichael Schroeder1-0/+43
2013-09-13add solv_memdup and solv_memdup2 inline helper functionsMichael Schroeder1-4/+1
2013-08-21make solver_describe_decision always return a rule, add solver_rule2solvable()Michael Schroeder1-0/+10
that way users of describe_decision have the correct rule, they can use solver_rule2solvable to get the id of the solvable.
2013-06-04add POOL_FLAG_IMPLICITOBSOLETEUSESCOLORS to match the current rpm behaviourMichael Schroeder1-3/+3
Sigh. I hope that's the last time rpm changes the way it handles obsoletes.
2013-05-15Lookat at keepexplicitobsoletes when creating update rules for multiversion ↵Michael Schroeder1-1/+8
packages
2013-05-07add SOLVER_RULE_JOB_UNSUPPORTED and SOLVER_RULE_JOB_UNKNOWN_PACKAGEMichael Schroeder1-5/+7
2013-04-18Haiku: The notation for the pre-release version part changedIngo Weinhold1-2/+0
Instead of using '-' as the separator for the pre-release '~' is used now. This allows to drop code in a few places where Haiku had to be special-cased before.
2013-04-17rules/selection: use strrchr in EVR checks as wellMichael Schroeder1-1/+1
2013-04-17adapt SET_EV/SET_EVR magic to haiku for completenessMichael Schroeder1-5/+4
2013-04-05make queue_insertn more flexibleMichael Schroeder1-1/+1
Yes, it's an API change, but I'm pretty sure that nobody other than the solver itself uses queue_insertn.
2013-04-05refactor a bitMichael Schroeder1-6/+17
2013-04-04Do extra checking for choice rules so that they don't interfere with package ↵Michael Schroeder1-5/+85
splits
2013-03-22rename "NOOBSOLETES" to "MULTIVERSION"Michael Schroeder1-16/+16
The name was always not very fitting, but newer rpm versions do look at the obsoletes and just don't remove packages with the same name, which makes the old name even worse. So rename to "multiversion", which seems to be what many package managers use anyway.
2013-02-05further optimize solver_reenablepolicyrulesMichael Schroeder1-19/+58
2013-02-04optimize code a bit to make analyze_unsolvable fasterMichael Schroeder1-0/+2
2013-02-04make it possible to re-run an existing solver (re-using the rpm rules)Michael Schroeder1-0/+6
2013-01-15do not ignore disabled/considered flags for src packagesMichael Schroeder1-6/+8
2012-12-18don't access r->p after solver_addrule is called, as it may realloc the rulesMichael Schroeder1-4/+5
Thanks valgrind!
2012-12-10implement special install/erase namespace provides hackMichael Schroeder1-11/+127
2012-12-04support cleandeps in targeted up/dup cases, add testsMichael Schroeder1-4/+31
2012-11-30small optimization for targeted dupMichael Schroeder1-2/+2
2012-11-30another targeted dup fix, add testcasesMichael Schroeder1-127/+101