Nils Adermann
dd527a4049
Remove weak rules
...
Since we no longer have suggest/recommend rules and no longer use any update
or feature rules so packages are removed by default, we do not need weak rules
anymore.
12 years ago
Nils Adermann
025581b365
Rename walkLiteral method to more explicitly say what it does
12 years ago
Nils Adermann
a395bc04d7
Get rid of continue 2; and use array_filter instead of manual looping
12 years ago
Nils Adermann
451bab1c2c
Get rid of Literal object / literal id mix, use literals only to save memory
12 years ago
Nils Adermann
9ffe0d13f5
Remove useless if
12 years ago
Nils Adermann
cdf3b4e012
Use SplDoublyLinkedList instead of custom linked list
12 years ago
Nils Adermann
731a451dfe
Move handling of watch graph to separate classes
12 years ago
Nils Adermann
71ee5c8f4c
We don't have a systemsolvable at the lowest level
12 years ago
Nils Adermann
286593cf99
Move solver debugging code into solver subclass
12 years ago
Nils Adermann
46e4ae0e6a
Move rule generation from solver into separate rule set generator
12 years ago
Nils Adermann
83c499cf29
Remove unecessary use statement in Transaction class
12 years ago
Nils Adermann
70e306f055
Process all jobs in one method and remove lock jobs which are not used
12 years ago
Nils Adermann
3fcd042fd4
Skip adding (ignored) duplicate rules which were already added
12 years ago
Nils Adermann
1d60ae1bfc
We no longer support recommended packages, remove left over code
12 years ago
Nils Adermann
92ecf5a603
Remove unused variables
12 years ago
Nils Adermann
bd66c27ff6
We mark packages as uninstallable by removing them from the repo
...
As it is faster to remove packages from the repos and keep them out of the
package pool to begin with, we don't need an installable() method on the
policy.
12 years ago
Nils Adermann
8fc09afbae
Move transaction generation to a separate class
12 years ago
Jordi Boggiano
5026f8a115
Fix AliasOperations output
12 years ago
Jordi Boggiano
453b9a616b
Add test for Pool handling and refactor a couple things
12 years ago
Jordi Boggiano
ef28f3b067
Basic handling of stability flags
12 years ago
Jordi Boggiano
66068fedcb
Add minimum-stability flag on root package to filter packages by stability
12 years ago
Nils Adermann
11c59baf59
Remove useless property in exception class
12 years ago
Nils Adermann
37d271271d
Turn assertions into solver bug exceptions with more info
12 years ago
Jordi Boggiano
fafd09a7ba
Improve output of operations to show details about dev versions
12 years ago
Nils Adermann
863bb59b73
Fix authorship info
12 years ago
Nils Adermann
0c1944a9d0
Let the solver handle aliases instead of the installer
12 years ago
Nils Adermann
15f43571b9
Rules of type feature are no longer needed
12 years ago
Nils Adermann
69b55f12ae
Call feature rules update rules, as there is no difference in composer
12 years ago
Nils Adermann
0bd6fa1f37
An array of installed packages is no longer needed in the solver
12 years ago
Nils Adermann
cf5d14e2e1
Move all solver members to top of the file
12 years ago
Nils Adermann
c51fedef8c
Policy rules cannot conflict with jobs anymore
...
As we no longer need special feature rules for updating installed packages
we don't have policy rules which might conflict with job rules anymore.
Everything is driven by jobs now.
12 years ago
Nils Adermann
5feff954a4
Remove commented out debug output
12 years ago
Nils Adermann
c37e126e14
Installed packages are now always removed unless otherwise requested
...
This means that an update request must always be accompanied by an install
request, otherwise the package might be removed rather than updated.
12 years ago
Nils Adermann
f4ae88a5d6
Create lookup table for installed packages in only one place
12 years ago
Nils Adermann
5daeacf0ac
We won't implement choice rules, you need to edit composer.json to choose
12 years ago
Nils Adermann
875261931c
We do not support any options to keep obsolete packages
12 years ago
Jordi Boggiano
f7440076fa
Revert "Merge remote-tracking branch 'naderman/remove-packages-by-default'"
...
This reverts commit 2988152602
, reversing
changes made to adb4188e12
.
12 years ago
Nils Adermann
f4d5568937
Rules of type feature are no longer needed
12 years ago
Nils Adermann
d153ab3f8f
Call feature rules update rules, as there is no difference in composer
12 years ago
Nils Adermann
f98ab2e491
An array of installed packages is no longer needed in the solver
12 years ago
Nils Adermann
7be4b82ad2
Move all solver members to top of the file
12 years ago
Nils Adermann
6410817c4e
Policy rules cannot conflict with jobs anymore
...
As we no longer need special feature rules for updating installed packages
we don't have policy rules which might conflict with job rules anymore.
Everything is driven by jobs now.
12 years ago
Nils Adermann
3618ddacb0
Remove commented out debug output
12 years ago
Nils Adermann
2cb2cde096
Installed packages are now always removed unless otherwise requested
...
This means that an update request must always be accompanied by an install
request, otherwise the package might be removed rather than updated.
12 years ago
Nils Adermann
1a48ebaf57
Create lookup table for installed packages in only one place
12 years ago
Nils Adermann
0e537b9c93
We won't implement choice rules, you need to edit composer.json to choose
12 years ago
Nils Adermann
5ba9a887c2
We do not support any options to keep obsolete packages
12 years ago
Jordi Boggiano
ebf78135c9
Rename method
12 years ago
Jordi Boggiano
06fb1b8083
Fix priority of aliases when mixing root package aliases with branch-alias ones, fixes #576
12 years ago
Nicolas Le Goff
3f13eb87b1
fix_typo
12 years ago
Jordi Boggiano
53191eb0fe
Remove recommend, make suggest informational, add require-dev, fixes #78 , fixes #510
12 years ago
Jordi Boggiano
452c9ad24e
Merge remote-tracking branch 'naderman/remove-dontfix'
12 years ago
Nils Adermann
64a451eaf9
Remove dontFix feature for local packages and explicit fix command
...
This made sense for the libzypp, so your kernel doesn't get deleted
just cause it thinks something is broken, but it doesn't really make
sense for composer.
12 years ago
Jordi Boggiano
aa21b1a93a
Fix output
12 years ago
Nils Adermann
a16aa68c1d
Rule literals are sorted, so first literal added is not first retrieved
...
Fixes #477
12 years ago
Jordi Boggiano
5fd50080ab
Print details about missing extensions, fixes #312
12 years ago
Nils Adermann
83123b2d40
Generate human readable explanations of rules which cause problems
12 years ago
Nils Adermann
2c87fe5a22
Collect solver problems in Problem objects with human readable output.
12 years ago
Jordi Boggiano
9ed05e09f3
Fix version_compare for ubuntu that ships with versions like 5.3.3-1 (bigger than 5.3.3)
12 years ago
Martin Hasoň
2b08df5192
Changed repository priority in the pool
13 years ago
Jordi Boggiano
c425b8b6cb
Prevent a package from having duplicate names
13 years ago
Nils Adermann
17f0730e51
Levels are always > 0, negative level was just a hack in the C implementation
...
Fixes #243
13 years ago
Jordi Boggiano
956b54e516
Use policy rule instead of stacking up another repo to prioritize aliased packages
13 years ago
Nils Adermann
f3ff53b17c
Create problems directly, rather than generating impossible rules
13 years ago
Nils Adermann
ff620afe05
Correct the parent path in the watch tree, after moving a rule out of the path
13 years ago
Nils Adermann
3e1749fbad
Readd update-all jobs and make them available through the request
13 years ago
Nils Adermann
9b8e62396c
Merge pull request #324 from edorian/installNonExistingPackage
...
Create an 'impossible rule' when installing non existent packages
13 years ago
Nils Adermann
2a92b904d2
Correct placing of braces
13 years ago
Nils Adermann
1ee5d99405
When changing watched literals of a rule, update the parent's next pointer
...
The previous rule was not previously updated to point to the next rule when
removing a middle rule from the watch tree for a literal. This resulted in
jumping from one literal's watch tree to another's, which could then jump
back to the original and cause infinite loop in a case like #265 .
Fixes #265
13 years ago
Volker Dusch
e20a79ac61
Fix TODO tags to confirm with the projects standard
13 years ago
Nils Adermann
8484199677
Display undecided literals as undecided with a ?, when printing the decision map
13 years ago
Nils Adermann
0b8fb68e93
Add a debug print method for the entire watch tree to the solver
13 years ago
Volker Dusch
eafe13d5a5
Create an impossible rule when trying to install something that doesn't exist.
...
The rule isn't acted upon yet (hence the incomplete test) but it is there as a reminder that this case needs to be handled.
13 years ago
Nils Adermann
52d876e11e
Add SolverProblemsException and test basic solver failures
13 years ago
Nils Adermann
8fd4e56029
Deciding to install a package and wanting to install it, is not a conflict
13 years ago
Volker Dusch
3fb75faa75
Now that no more update rules are created the code that handles them can be removed too.
...
Also adapted the tests that used TYPE_UPDATE exemplarily to use TYPE_FEATURE.
13 years ago
Volker Dusch
ec61297122
Remove the allowUninstall policy option and clean up the only usage
13 years ago
Nils Adermann
cbc021c05d
featureRule no longer exists, only update rule
13 years ago
Volker Dusch
5fdca19880
Removed the option to disallowed downgrades and simplifed some places where it was used
13 years ago
Volker Dusch
cc80e5a3b1
Cleanup unreachable code
13 years ago
Nils Adermann
7609f27052
Merge branch 'add-tests' of https://github.com/l3l0/composer into new-master
...
* 'add-tests' of https://github.com/l3l0/composer :
Made fixes after review.
Made changes which fied warnings and errors in tests.
Fixed tests after update and merge of changes from upstream/master
Fixed code. Changes improved code testability
Added and extended some unit tests
13 years ago
Jordi Boggiano
5e3bf86851
Remove .swp file
13 years ago
Volker Dusch
fb69ef64c5
Fix Solver function visibility to reflect what acutally should be the public interface
13 years ago
Nils Adermann
cb7f656fa9
Off by one error in the solver - 1 cannot be false
...
Fixes #133 , #160 , #162 , #177 , #289
13 years ago
Justin Rainbow
8e64229461
Increasing version number to include 5.3.3 which also has an issue with SplFixedArray
13 years ago
Leszek Prabucki
f59ca1e2f8
Made fixes after review.
13 years ago
Leszek Prabucki
9488b0f85f
Fixed code. Changes improved code testability
13 years ago
Joseph Bielawski
188d8beb79
Class name typo fix
13 years ago
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.
13 years ago
Jordi Boggiano
edf948454b
Remove IO from Solver, debug methods don't need it
13 years ago
François Pluchino
0f9dcc9618
Remplace all echo with writeln method of IO
13 years ago
Hugo Hamon
9acbb0c026
[DependencyResolver] removed unused local variables and fixed some wrong local variable names in Solver class.
13 years ago
Artem Lopata (bumz)
de066de198
Fix for composer. When running update/install command it's just do nothing, except writing "Installing dependencies"
13 years ago
Jordi Boggiano
c921a8884e
Adjust operation output, fixes #166
13 years ago
digitalkaoz
87831d8c1c
fixed typo
13 years ago
Jordi Boggiano
f2662b193d
Add --dry-run option and list all operations on --verbose
13 years ago
Jordi Boggiano
d020f2701d
Merge pull request #118 from naderman/priority-replace-any-version
...
Replaced packages have higher priority even if wrong version is replaced
13 years ago
Nils Adermann
5d5d6462e3
Correctly declare all literal properties
13 years ago
Nils Adermann
40b33914b3
Compute rule hashes for faster duplicate detection
13 years ago
Nils Adermann
69f55d37bb
Generate literal ids only once and use in equals()
...
Significant speedup because equals and getId() are called so frequently.
13 years ago