Justin Rainbow
8e64229461
Increasing version number to include 5.3.3 which also has an issue with SplFixedArray
2012-02-01 09:31:27 -07:00
Joseph Bielawski
188d8beb79
Class name typo fix
2012-01-19 16:58:59 +01:00
Justin Rainbow
7eda0a8823
PHP 5.3.2 segmentation fault fix
...
For some reason, using the SqlFixedArray causes a Segmentation Fault during
an install or update. Changing to a simple array fixes this issue, but in
turn uses more memory. Which is why there is the version test.
2012-01-18 15:56:29 -07:00
Jordi Boggiano
edf948454b
Remove IO from Solver, debug methods don't need it
2012-01-17 22:46:52 +01:00
François Pluchino
0f9dcc9618
Remplace all echo with writeln method of IO
2012-01-16 20:44:06 +01:00
Hugo Hamon
9acbb0c026
[DependencyResolver] removed unused local variables and fixed some wrong local variable names in Solver class.
2012-01-11 09:11:27 +01:00
Artem Lopata (bumz)
de066de198
Fix for composer. When running update/install command it's just do nothing, except writing "Installing dependencies"
2012-01-08 23:24:58 +02:00
Jordi Boggiano
c921a8884e
Adjust operation output, fixes #166
2011-12-21 15:57:39 +01:00
digitalkaoz
87831d8c1c
fixed typo
2011-12-06 21:13:04 +01:00
Jordi Boggiano
f2662b193d
Add --dry-run option and list all operations on --verbose
2011-11-21 17:56:21 +01:00
Jordi Boggiano
d020f2701d
Merge pull request #118 from naderman/priority-replace-any-version
...
Replaced packages have higher priority even if wrong version is replaced
2011-11-21 08:30:40 -08:00
Nils Adermann
5d5d6462e3
Correctly declare all literal properties
2011-11-21 16:14:16 +01:00
Nils Adermann
40b33914b3
Compute rule hashes for faster duplicate detection
2011-11-21 16:04:33 +01:00
Nils Adermann
69f55d37bb
Generate literal ids only once and use in equals()
...
Significant speedup because equals and getId() are called so frequently.
2011-11-21 16:04:26 +01:00
Nils Adermann
bca746c947
Don't consider a revert to level 1 (base level) in sat solver a failure
2011-11-21 15:02:42 +01:00
Nils Adermann
b717ad8851
Display rules in more readable format
2011-11-21 15:01:10 +01:00
Nils Adermann
46e1001b4b
Replaced packages have higher priority, even if wrong version is replaced
2011-11-19 15:00:56 +01:00
Nils Adermann
4140f08d9c
Use a map of installed package ids in the solver
...
The assumption package.repo == installed no longer holds for installed
packages because there are multiple wrapped installed repositories.
2011-11-19 00:27:35 +01:00
Nils Adermann
5bd1722d7e
Merge pull request #77 from benja-M-1/master
...
Fix the exception "Invalid argument supplied for foreach()"
2011-10-30 16:24:05 -07:00
Benjamin Grandfond
72bfe8b92c
Fix Exception in Request
...
Fix the exception "Invalid argument supplied for foreach()" when the
install command is launched multiple times.
2011-10-30 23:53:44 +01:00
Nils Adermann
e4f40272a3
Conflict handling: lastWeakWhy stores a rule, not a rule id
2011-10-29 20:05:06 +02:00
Nils Adermann
3e0e893f26
Correctly output decision map when debugging
2011-10-29 20:04:52 +02:00
Nils Adermann
85d38c653f
Also detect updates resulting from feature rules rather than update rules
2011-10-29 19:39:18 +02:00
Nils Adermann
2056c4c732
Allow downgrades and uninstalls in the default policy
2011-10-29 19:23:52 +02:00
Jordi Boggiano
d3aa8336dc
Fix typo
2011-10-29 19:21:34 +02:00
Nils Adermann
571c14adf9
Prefer original packages over replaced packages of same repository priority
2011-10-22 17:20:45 +02:00
Nils Adermann
44369472be
Define the calculation of package priorities in a single method
2011-10-22 16:48:23 +02:00
Nils Adermann
1b6f57e651
Correctly implement priorities and version numbers in the default policy
2011-10-22 16:44:10 +02:00
Nils Adermann
b52d6d881a
Pool repository index represents priority, highest index = highest priority
2011-10-22 16:39:49 +02:00
Nils Adermann
e4c94dd415
Adding tests for the default policy specifying its desired behaviour
2011-10-21 14:44:24 +02:00
Jordi Boggiano
5623f3e69c
Fix refactoring bugs
2011-09-25 23:07:42 +02:00
everzet
2fc0699492
Moved operations evaluation into new InstallationManager class
2011-09-25 19:31:51 +03:00
everzet
123f5fef77
Refactored Operations in order to fulfill naderman requests
2011-09-25 14:40:12 +03:00
everzet
0a1e7320b0
Refactored solver result array. Now it returns array of operation objects which are much nicer to work with
2011-09-24 02:29:22 +03:00
Joseph Bielawski
62bce6b9ed
[Request] Be more DRY
2011-09-17 17:18:49 +03:00
Jordi Boggiano
6b5f61943a
Lowercase package names in Request (fixes tests)
2011-09-17 13:23:17 +02:00
pborreli
f7735c396f
[Composer] Fixed typos
2011-09-15 01:22:33 +00:00
Nils Adermann
4dbb73daba
Use an SplFixedArray for the solver's decision map
2011-08-21 07:30:10 -04:00
Nils Adermann
69ebbf0eac
Correct handling of rules with more than 2 literals.
2011-08-21 06:30:06 -04:00
Nils Adermann
6cf8d3888c
Use version contraints in the default policy rather than hardcoded version_compare
2011-08-20 23:05:39 -04:00
Nils Adermann
6118c00086
Implement minimization of branches
2011-08-20 23:03:52 -04:00
Nils Adermann
0f6fb9b692
Separate transaction generation from solving and properly identify updates
2011-08-20 18:38:31 -04:00
Nils Adermann
f46aa495da
Turn obsolete relationships and replaced packages into conflict rules
2011-08-20 18:19:47 -04:00
Nils Adermann
52565a5935
Implement handling of conflicts with learned rules
2011-08-20 13:45:20 -04:00
Nils Adermann
b0c685176b
Correct branch handling and implement reverting of decisions at a particular level
2011-08-20 13:36:18 -04:00
Nils Adermann
37e676cedd
Implement analysis of conflicting rules
2011-08-20 13:21:24 -04:00
Nils Adermann
6d157b325d
Package ids are always positive, so use absolute literal value for package id
2011-08-20 13:21:24 -04:00
Nils Adermann
ad25618bdd
Add install job and update rule conflict handling and reenable installation
2011-08-19 06:15:51 -04:00
Nils Adermann
1125de6bf2
Added disablePolicyRules to solve conflicts between remove jobs & update rules
...
This temporarily breaks installation of packages
2011-08-19 06:06:00 -04:00
Nils Adermann
0d30bc469b
In the default policy compare object ids to avoid recursion.
2011-08-05 04:14:11 -04:00