Steve Preston
dfe18d2e7f
Fixed dependency problem caused by pull request #3482
10 years ago
Nils Adermann
4a945da55b
Avoid generating duplicate conflict rules
...
For each version of each package we create a conflict rule with each
other version. These are then added to the rule set and skipped if
duplicate so instead we can just generate them only once to begin with
and avoid unnecessary memory allocation and duplication lookups.
10 years ago
Nils Adermann
6f41e99fe2
Add back ruleById function for BC
10 years ago
Nils Adermann
2c43a3bcd0
Improve docblocks of public properties
10 years ago
Nils Adermann
107a736440
Recreate getLiterals method for BC
10 years ago
Nils Adermann
26598c4a9a
Remove unnecessary pool reference from rules
10 years ago
Nils Adermann
d77400ade2
Make ruleById lookup table in rule set public
...
Saves about 500k function calls on a packagist update
10 years ago
Nils Adermann
5c0efdcaa2
Move public properties to top and document them
10 years ago
Nils Adermann
c6af09b1da
Make project id public
...
Reduction of rougly 1.3 million function calls on packagist update
10 years ago
Nils Adermann
ef41f136f8
Literals on rule are now public
...
This causes a reduction of ~500k function calls for packagist composer
update (~14 million total).
10 years ago
Nils Adermann
5333017aea
Remove unused selectNewestPackages method in DefaultPolicy
...
Unused as of 1b6f57e651
10 years ago
Nils Adermann
dccb728e10
Remove further unnecessary checks for packages being arrays
10 years ago
Nils Adermann
89bd9be295
This entirely removes StreamableRepositories and minimal package arrays
10 years ago
Sam Mousa
670ca2f889
Fixed issue #3441
10 years ago
Nils Adermann
83159dc153
Use elseif instead of else { if {
10 years ago
Nils Adermann
0daaa1a902
Reduce whatProvides overhead
10 years ago
Nils Adermann
ee56db8767
Remove the handling of updates in the generator
...
Updates are implicitly handled by whatProvides for install requests
10 years ago
Jordi Boggiano
94926218e8
CS fixes
10 years ago
Jordi Boggiano
ec0463a400
Add tests for platform packages required by root and avoid creating rules altogether instead of disabling them, refs #3320
10 years ago
alu
b7fa302b90
add ignore-platform-package-requirements for update/install commands.
10 years ago
Ryan Weaver
947db97e33
[ #2492 ] Removing an unused variable and use statement, fixing phpdoc
10 years ago
Thai Phan
e6fdefb869
Update RuleWatchNode.php
10 years ago
Jordi Boggiano
ac497feaba
CS fixes
10 years ago
Jordi Boggiano
e23665be59
Fix replacers being picked if whatProvide was called before building the package whitelist, fixes #2991 , fixes #2962
10 years ago
Nils Adermann
78f2ad95a9
Correctly add decision reason to transaction
10 years ago
Christian Flothmann
0e9325da79
for AliasPackages check that the aliased package is white listed so that version constraints of AliasPackages are taken into account when computing package provisions
10 years ago
Nils Adermann
aa74818fe0
Handle array candidates in whatProvides
11 years ago
Nils Adermann
eb5c785dcd
Remove superfluous string casts
11 years ago
Nils Adermann
5b80144ad0
Resolve job packages after whitelist generation
11 years ago
Nils Adermann
bc7008270f
Properly limit to name matches only if necessary
11 years ago
Nils Adermann
3148ffd355
Whitelist packages with names matching those specified before generating rules
...
Addresses #2690 doesn't do any performance optimisations yet which we
could do now
11 years ago
Jordi Boggiano
51e6c3a466
Optimize solving by removing packages that are excluded by the root package requires
11 years ago
Jordi Boggiano
0a3df27403
Remove dead code, fixes #2363
11 years ago
Jordi Boggiano
11a0d16ccc
CS fixes
11 years ago
Jordi Boggiano
cc37e4b0b8
Show defaulted version if phpversion() returns nothing, fixes #2313
11 years ago
Nils Adermann
8369624c49
Correctly set watch2 on rule watch nodes for learned rules fixes #2181
11 years ago
Jordi Boggiano
051d219438
Fix whatProvides returning too many results when no constraint is given
11 years ago
Jordi Boggiano
8d0b7f278e
CS fixes
11 years ago
Jordi Boggiano
6f6228fb1d
Remove unneeded use
11 years ago
Pavel Savinov
b72c4cfe97
PHPDoc fix
11 years ago
Pavel Savinov
831bd844bd
Almost PHPDoc problems fixed
11 years ago
Jordi Boggiano
7449162aa4
Report ICU failures as the intl extension being missing, refs #1939
11 years ago
Jordi Boggiano
e848c76cbc
Only compare branches as versions in the policy to sort packages, but not in the solver, fixes #1817
11 years ago
Jordi Boggiano
326faf2b51
Minor cleanups
11 years ago
Jordi Boggiano
faa419cc0e
Merge remote-tracking branch 'hason/alias'
11 years ago
Jordi Boggiano
cc9dac8fe2
Fix tests and convert all package lists to Name[Versions] format
11 years ago
Jordi Boggiano
201cde05be
Show reasons why an operation is executed in -vv mode, fixes #1063
11 years ago
Robert Gruendler
5160dd2f5e
Return different error code for SolverProblemsException
...
To make it easier for external tools to detect SolverProblems and react
to them accordingly,
this PR introduces a new exit code.
11 years ago
Jordi Boggiano
0700cd9186
Adjust according to feedback
11 years ago
Jordi Boggiano
db4055b778
Put a higher prio on replacers of the same vendor as the required package
11 years ago