1
0
Fork 0
Commit Graph

733 Commits (eafd28b08395ae5570b18fbaa30bf1e26b42d1d5)

Author SHA1 Message Date
Frank Kleine 025f6066ff fix file permissions 2012-02-21 00:40:43 +01:00
mikey179 895d901bf9 better error handling when git command runs into a failure, fixes #340 2012-02-21 00:02:34 +01:00
Jordi Boggiano 93ac0eb523 Merge pull request #336 from naderman/solver-only-error-reporting
Errors are now reported solely by the solver without any workarounds
2012-02-20 04:05:55 -08:00
Igor Wiedler d9b535e230 [pear-prefix] fix installing pear packages 2012-02-20 13:01:29 +01:00
Nils Adermann f3ff53b17c Create problems directly, rather than generating impossible rules 2012-02-20 12:58:27 +01:00
Igor Wiedler 06f1ecf83a [pear-prefix] add a pear-{channel}/ prefix to PearRepository packages 2012-02-20 12:51:30 +01:00
Jordi Boggiano 9ba0505751 Make sure lock file is sorted, fixes #276 2012-02-20 12:35:03 +01:00
Nils Adermann de1765aa48 Remove workaround error detection in install command 2012-02-20 12:24:24 +01:00
Jordi Boggiano 621388e3be Fix warning when no package to update is found 2012-02-20 12:14:44 +01:00
Jordi Boggiano eb35244230 Fix repositories warning 2012-02-20 11:55:32 +01:00
Nils Adermann 03a9e0dfee Merge pull request #330 from Seldaek/repositories
[BC Break] Refactor repositories configuration
2012-02-20 01:58:52 -08:00
Nils Adermann 39aa5c0752 Merge pull request #329 from Seldaek/new_dev
[BC Break] New dev handling
2012-02-20 01:58:21 -08:00
Jordi Boggiano 2976bd82b0 Simplify code 2012-02-20 09:50:02 +01:00
Jordi Boggiano 716d9dc80a Merge pull request #331 from naderman/fix-rule-parent-path
Correct the parent path in the watch tree, after moving a rule out of the path
2012-02-19 10:22:15 -08:00
Nils Adermann ff620afe05 Correct the parent path in the watch tree, after moving a rule out of the path 2012-02-19 19:20:12 +01:00
Jordi Boggiano d0d5329f6f Fix package repositories 2012-02-19 19:12:56 +01:00
Jordi Boggiano 44e76e06fc Refactor repositories configuration 2012-02-19 19:00:12 +01:00
Jordi Boggiano bb160a3162 Merge pull request #328 from naderman/update-all
Update all
2012-02-19 08:16:20 -08:00
Nils Adermann 509188c112 Use updateAll request method in upddate mode in install command 2012-02-19 17:14:11 +01:00
Nils Adermann 3e1749fbad Readd update-all jobs and make them available through the request 2012-02-19 16:59:04 +01:00
Jordi Boggiano c95b4d05fd Fix forcing of the source-ref from lock file 2012-02-19 16:57:36 +01:00
Jordi Boggiano 4233a4823d Skip platform repo and only force-update packages that have a new source ref 2012-02-19 16:57:36 +01:00
Jordi Boggiano 646d01658a Rename source_ref to source-ref 2012-02-19 16:57:35 +01:00
Jordi Boggiano c12dccd3d4 Restore quality of debug output 2012-02-19 16:57:34 +01:00
Jordi Boggiano d7350b66d5 Ensure dev packages have a source 2012-02-19 16:57:33 +01:00
Jordi Boggiano 88b018068c Force dev packages to update to latest ref on update 2012-02-19 16:57:33 +01:00
Jordi Boggiano 496188f714 Force installs from lock to reinstall dev packages from the exact locked reference 2012-02-19 16:57:32 +01:00
Jordi Boggiano c1baa20fec Lock reference of dev packages 2012-02-19 16:57:31 +01:00
Jordi Boggiano 3fe87b1e35 Force dev packages to be installed from source 2012-02-19 16:57:30 +01:00
Jordi Boggiano f73c08043f Refactor VcsRepo to follow new dev model 2012-02-19 16:57:29 +01:00
Jordi Boggiano 3e6176eccf Update version parser to support any branch name 2012-02-19 16:57:29 +01:00
Jordi Boggiano 32157a3904 Fix local git repo handling in GitDriver 2012-02-19 16:38:07 +01:00
Nils Adermann 9b8e62396c Merge pull request #324 from edorian/installNonExistingPackage
Create an 'impossible rule' when installing non existent packages
2012-02-19 07:05:21 -08:00
Nils Adermann 2a92b904d2 Correct placing of braces 2012-02-19 15:44:02 +01:00
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
2012-02-19 15:35:13 +01:00
Volker Dusch e20a79ac61 Fix TODO tags to confirm with the projects standard 2012-02-19 15:30:53 +01:00
Nils Adermann 8484199677 Display undecided literals as undecided with a ?, when printing the decision map 2012-02-19 15:20:13 +01:00
Nils Adermann 0b8fb68e93 Add a debug print method for the entire watch tree to the solver 2012-02-19 15:19:34 +01:00
Jordi Boggiano fd0bf14eb2 Support both require and requires as depends link-type arg 2012-02-19 15:09:29 +01:00
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.
2012-02-19 14:55:14 +01:00
Jordi Boggiano c97a33577b Merge pull request #321 from naderman/error-reporting
Basic error reporting for solver problems
2012-02-18 15:22:04 -08:00
Nils Adermann 52d876e11e Add SolverProblemsException and test basic solver failures 2012-02-19 00:15:23 +01:00
Nils Adermann 8fd4e56029 Deciding to install a package and wanting to install it, is not a conflict 2012-02-19 00:13:21 +01:00
Jordi Boggiano f54b04aac8 Restore realpath behavior 2012-02-18 23:28:47 +01:00
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.
2012-02-18 19:19:49 +01:00
Volker Dusch ec61297122 Remove the allowUninstall policy option and clean up the only usage 2012-02-18 18:31:19 +01:00
Nils Adermann cbc021c05d featureRule no longer exists, only update rule 2012-02-18 18:04:45 +01:00
Nils Adermann 54a8dc1d9c Merge pull request #317 from edorian/remove-allowDowngrade
Removed the option to disallowed downgrades
2012-02-18 08:59:52 -08:00
Volker Dusch 5fdca19880 Removed the option to disallowed downgrades and simplifed some places where it was used 2012-02-18 17:50:15 +01:00
Jordi Boggiano e2199b2b03 Fixed automatic date parsing of versions 2012-02-18 17:05:13 +01:00
Jordi Boggiano 230e145053 Fix downloader tests on windows and mock Filesystem properly 2012-02-18 17:00:07 +01:00
Nils Adermann e7441edcf1 Merge pull request #315 from edorian/cleanup-update-all
Cleanup unreachable code
2012-02-18 07:18:09 -08:00
Jordi Boggiano a28fa790be Fix regex 2012-02-18 16:03:49 +01:00
Volker Dusch cc80e5a3b1 Cleanup unreachable code 2012-02-18 14:29:58 +01:00
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
2012-02-18 13:08:20 +01:00
Jordi Boggiano 5e3bf86851 Remove .swp file 2012-02-18 12:50:45 +01:00
Volker Dusch fb69ef64c5 Fix Solver function visibility to reflect what acutally should be the public interface 2012-02-18 12:44:52 +01:00
Jordi Boggiano fa8cb14073 Simplify check 2012-02-18 12:12:02 +01:00
Jordi Boggiano f152fe723d Allow local file system git repos & do not restrict to valid http* urls 2012-02-18 12:00:30 +01:00
Jordi Boggiano cac51b1baf Merge pull request #309 from naderman/fix-assert
Off by one error in the solver - 1 cannot be false
2012-02-17 15:17:04 -08:00
Nils Adermann cb7f656fa9 Off by one error in the solver - 1 cannot be false
Fixes #133, #160, #162, #177, #289
2012-02-18 00:11:08 +01:00
Christophe Coevoet 28d3d4b130 Added a NullIO 2012-02-18 00:00:38 +01:00
Jordi Boggiano 70bea8fe57 Fix previous commit 2012-02-17 17:01:45 +01:00
Jordi Boggiano b2076c2462 Re-order repos so that packagist always has the lowest priority 2012-02-17 16:59:26 +01:00
Jordi Boggiano 4d7ecdcb69 Fix authentication behavior when re-entering get() 2012-02-17 12:35:42 +01:00
Jordi Boggiano a8aef7e203 Text tweaks 2012-02-17 12:19:29 +01:00
Jordi Boggiano 35cca1ed7f Do not reveal input length 2012-02-17 12:18:48 +01:00
Jordi Boggiano 60fddb2c09 Use parse_url instead of manual parsing 2012-02-17 12:13:56 +01:00
Jordi Boggiano 8b7a64ab28 Limit progress output, mitigates #283 2012-02-17 11:53:38 +01:00
Jordi Boggiano 844c43092f Fix re-entrant behavior 2012-02-17 11:53:09 +01:00
Jordi Boggiano db03b7bbbd Fix line endings 2012-02-17 11:50:36 +01:00
Jordi Boggiano d0f6b679bc Merge remote-tracking branch 'francoispluchino/master' 2012-02-17 11:45:55 +01:00
Jordi Boggiano 8dcb75080e Merge remote-tracking branch 'wookieb/installer_dry_run' 2012-02-17 10:47:40 +01:00
Jordi Boggiano deaaf2ef37 Merge pull request #307 from hason/slashes
Added support for JSON_UNESCAPED_SLASHES
2012-02-17 01:26:06 -08:00
Martin Hasoň e621495c4d Added support for JSON_UNESCAPED_SLASHES 2012-02-17 10:06:59 +01:00
Logan Aube ea05f678fd Exception mentioned PEAR repository when should be VCS, was misleading 2012-02-16 19:42:19 -05:00
François Pluchino 56150fd98f Merge remote branch 'composer/master' 2012-02-16 23:53:17 +01:00
François Pluchino dbfbbab904 Add changes requested 2012-02-16 23:41:26 +01:00
Wookieb 2467456d3f Fix installer that create vendor and bin directory even if --dry-run parameter provided
* Move directories creation from constructor to "install" and "update" method
* Tests for LibraryInstaller
2012-02-16 22:43:10 +01:00
Jordi Boggiano 26f2b9e93f Merge pull request #303 from MattKetmo/directory_inception
[BUG] Fix error when moving up a directory content
2012-02-16 11:45:37 -08:00
Jordi Boggiano 1e6633b3c3 Allow search command to work without a composer.json 2012-02-16 20:42:47 +01:00
Jordi Boggiano ee7b68c049 Allow people to manually enter requirements 2012-02-16 20:41:16 +01:00
Jordi Boggiano 9a2204cd74 Improve username detection and other minor fixes 2012-02-16 20:40:57 +01:00
Jordi Boggiano f48cfb4fdf Avoid requirement on composer.json to search for requirements 2012-02-16 20:39:59 +01:00
Jordi Boggiano 23aade21f0 Show empty default value when one is specified 2012-02-16 20:38:43 +01:00
Jordi Boggiano d1d9c715c9 Add newline at the end of formatted jsons 2012-02-16 20:37:05 +01:00
Jordi Boggiano 33fcb959ea Refactor JsonFile::encode to match json_encode 2012-02-16 20:28:02 +01:00
Jordi Boggiano 95883f058c Merge remote-tracking branch 'justinrainbow/init_command' 2012-02-16 19:30:25 +01:00
Jordi Boggiano 01cb2c5dd7 Fix typo 2012-02-16 18:58:25 +01:00
François Pluchino 2e3eed081a Merge remote branch 'composer/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
2012-02-16 18:11:01 +01:00
MattKetmo 7d5ba2d756 [DownloadFile] Renamed wrapper directory after extract
This fixes error when the extracted directory (from an archive) contains
a folder with the same name. Example:

    $ mv test/test test
    mv: test/test and test/test are identical
2012-02-16 17:26:42 +01:00
Jordi Boggiano 13183753e6 Merge remote-tracking branch 'hason/unicode' 2012-02-15 18:38:20 +01:00
Jordi Boggiano 6905e3a7ae Disable gzip compression of the phar 2012-02-15 18:21:17 +01:00
François Pluchino bc232af018 Bug fix display downloading info 2012-02-15 14:16:42 +01:00
François Pluchino 953f0992f7 Merge callback method of FileDownloader and VcsDriver
Required corrections added
2012-02-15 13:11:29 +01:00
Martin Hasoň ff0f833b3e Added support for JSON_UNESCAPED_UNICODE and fixed parsing string 2012-02-15 12:00:04 +01:00
Jordi Boggiano 256bfedea1 Merge remote-tracking branch 'jalliot/proxy2'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Repository/PearRepository.php
2012-02-14 17:01:15 +01:00
Jordi Boggiano e92e3ba355 Simplify code 2012-02-14 16:06:09 +01:00
Henrique Moody b030a36bf5 Some PEAR repositories does not works because of a wrong link parse. 2012-02-14 12:29:32 -02:00
Martin Hasoň 01be62d842 Updated ArrayDumper 2012-02-14 12:57:15 +01:00