Paul.Wenke
59ae2716aa
Fixed typo in exception message for Bitbucket config command.
2016-03-28 09:13:58 -04:00
Niels Keurentjes
a0070e724b
Clobber any existing sudo leases before execution to prevent malicious code gaining root privileges.
2016-03-28 13:10:43 +02:00
Niels Keurentjes
557a55fbe5
Clobber sudo credentials to prevent careless privilege escalations.
2016-03-27 23:42:39 +02:00
Jordi Boggiano
37a1e12672
Mark failed downloads as failed instead of 100% complete, fixes #5111
2016-03-27 17:14:51 +01:00
Jordi Boggiano
95c263284a
Merge pull request #5064 from Seldaek/update-channels
...
Add update channels support to self-update and diagnose
2016-03-27 14:49:09 +02:00
Jordi Boggiano
9af645ef50
Fix missing var ref, refs #5117
2016-03-27 13:25:07 +01:00
Jordi Boggiano
6a88d49ffb
Add support for the new binary installer in PEAR installer, fixes #5117
2016-03-27 13:16:11 +01:00
vlakoff
47d196f37f
Fix missing argument for getLastBackupVersion()
2016-03-27 00:25:17 +01:00
Jordi Boggiano
f542b0f32d
Only use Path if it is actually available, refs #5114
2016-03-26 09:49:28 +00:00
Jordi Boggiano
2f6b4c439d
Merge remote-tracking branch 'mizunashi-mana/fix-issue-5045'
2016-03-26 09:48:18 +00:00
Jordi Boggiano
e0fa2ed9c6
Merge remote-tracking branch 'vlakoff/clean-backups'
2016-03-26 09:27:44 +00:00
Jordi Boggiano
747af10483
Clarify required by root message, refs #5099
2016-03-26 09:24:58 +00:00
Jordi Boggiano
5f9d4a81a0
Merge remote-tracking branch 'curry684/moar-logging'
2016-03-26 08:49:14 +00:00
Jordi Boggiano
ace88fa986
Rename LibraryBinariesHandler and reorganize constructor args, refs #5100
2016-03-26 08:44:54 +00:00
Jordi Boggiano
6527bb4166
Merge pull request #5100 from helhum/master
...
Extract binary installation and removal to own class
2016-03-26 09:39:51 +01:00
Jordi Boggiano
340d9789c8
Merge pull request #5095 from schlessera/schlessera-4451-relative-path
...
Make sure to use an absolute path for symlinking in PathDownloader.
2016-03-26 09:37:17 +01:00
nishiyama
8b221905ca
fix path info
2016-03-25 20:04:43 +09:00
Niels Keurentjes
8e78ce9a43
Add extra logging before and after SAT solving
2016-03-24 23:19:40 +01:00
Jordi Boggiano
edebbef98a
Add test and fix for very large repos, moar possessive quantifiers, fixes #5104
2016-03-24 16:04:52 +00:00
Jordi Boggiano
2217f4e09e
Add support for PREG_JIT_STACKLIMIT_ERROR, refs #5104
2016-03-24 16:00:44 +00:00
Helmut Hummel
b1ec99faed
Extract binary installation and removal to own class
...
The functionality to install binaries might be useful
for other installers.
Create API for that by extracting this functionality from
the LibraryInstaller class.
2016-03-23 21:39:58 +01:00
Alain Schlesser
4e9885e9bc
Make sure to use an absolute path for symlinking in PathDownloader. Resolves #4451
2016-03-23 12:19:41 +01:00
Paul Wenke
9059d70ba0
Corrected username / access token parameters for $this->io->setAuthentication when read from git config. Grant type is now only set when requesting an access token. Removed bitbucket-domains and bitbucket-protocols from config. Fixed bitbucket typo in JsonConfigSource. Removed unecessary comments. Changed visibility of Composer/Util/Bitbucket properties to private. Added https to bitbucket url. Removed unused $note variable.
2016-03-20 15:56:58 -04:00
Jordi Boggiano
cb971fcb0e
Hijack pear.php.net from http to force https, refs #5071
2016-03-17 11:24:22 +00:00
Jon Dufresne
939955fb2c
Prefer the first https:// PEAR mirror; avoid http://.
...
Fixes #5069
2016-03-15 14:58:55 -07:00
Jordi Boggiano
0db8bbfda3
Add update channels support to self-update and diagnose, fixes #4960
2016-03-15 14:13:08 +00:00
Jordi Boggiano
55b0ed8c8b
Change installs into updates if there is no lock file, simplify some code, fixes #5034
2016-03-15 14:05:07 +00:00
Jordi Boggiano
653326e215
Merge pull request #5059 from alcohol/issue-4795-2
...
simplified existing test, added a new test - related to #4795
2016-03-15 10:56:48 +00:00
Jordi Boggiano
9580a76f0d
Merge pull request #5049 from curry684/issue-5048
...
Make path repository options part of the dist reference hash
2016-03-15 10:38:26 +00:00
Rob Bast
8a19e8bd17
fix follow up issue to #4795
2016-03-15 11:17:58 +01:00
Niels Keurentjes
fafac386b7
Ensure stat cache is cleared for junctions when using outside modifications.
2016-03-14 12:27:41 +01:00
Paul.Wenke
b4d9d0fd0d
Added BitbucketTest class. Added is_array and is_object check to http content before calling http_build_query.
2016-03-13 21:33:13 -04:00
Paul.Wenke
9ddf8c4d55
Fixed OAuth credentials issue for subsequent clone requests.
2016-03-13 16:57:23 -04:00
Niels Keurentjes
d41bd2909b
Make path repository options part of the dist reference hash, fixes #5048
2016-03-12 11:05:03 +01:00
Nicolas Grekas
08d48cb61a
Prefer ZipArchive over unzip on Windows
2016-03-11 11:07:36 +01:00
Jordi Boggiano
8bf46768f3
Improve error reporting when loading artifact repos
2016-03-10 16:31:09 +00:00
Jordi Boggiano
e8abc90b92
Merge pull request #5026 from curry684/issue-4392
...
Simulate dummy Composer when searching in uninitialized folder
2016-03-09 12:44:27 +01:00
Niels Keurentjes
a2d2c4ddd5
Simulate dummy Composer when searching in uninitialized folder, fixes #4392
2016-03-08 23:52:44 +01:00
Niels Keurentjes
fbbde23fb3
Improved error message when adding a package that is disallowed by PHP version, fixes #4686
2016-03-08 23:09:08 +01:00
vlakoff
f7757c606d
Move instruction to delete corrupted file
2016-03-08 13:10:11 +01:00
vlakoff
9532a0129c
Correct error message to match actual behavior
2016-03-08 13:09:25 +01:00
vlakoff
93e08fd78e
Also clean backups if no Composer update actually performed
2016-03-07 19:01:17 +01:00
vlakoff
496d29a793
Move code to new method cleanBackups()
2016-03-07 19:01:17 +01:00
vlakoff
4b79ca6ba2
Remove duplicate variable
2016-03-07 19:01:16 +01:00
Jordi Boggiano
4cc719cab3
Add support for SSL_CERT_DIR and openssl.capath, fixes #5017
2016-03-07 13:07:02 +00:00
Jordi Boggiano
8344c6d3d7
Merge pull request #4993 from hkdobrev/create-project-suggests
...
List project suggestions in create-project command
2016-03-07 14:01:16 +01:00
Paul Wenke
d2c5479b2d
Updated documentation and fixed formatting in Bitbucket Util.
2016-03-06 22:20:22 -05:00
Paul Wenke
d5332a1b5c
Developed bitbucket-oauth functionality.
2016-03-06 22:05:00 -05:00
Jordi Boggiano
3933a7f404
Add conflict detection in why-not, fixes #5013
2016-03-07 01:50:41 +00:00
Jordi Boggiano
a15779cf53
Fix issue handling false children in why-not command
2016-03-07 00:45:02 +00:00
Haralan Dobrev
cc389d6c1a
List project suggestions in create-project command
...
Resolves https://github.com/composer/composer/issues/2752
2016-03-05 14:22:12 +02:00
Rick Guyer
2a35486d7d
Check for --ignore-platform-reqs flag during create-project
...
During `create-project`, the installed PHP version was used to determine
the best root package install candidate, but failed to take into account
the `--ignore-platform-reqs` flag.
2016-03-04 12:50:59 -06:00
Jordi Boggiano
3cea62b6ed
Merge pull request #5001 from curry684/issue-4999
...
Show -t incorrectly expanded self.version constraints. Fixes #4999
2016-03-04 15:39:36 +00:00
Jordi Boggiano
bf283cee66
Merge pull request #5002 from barryvdh/change-remove-deps
...
Make remove with dependencies default
2016-03-04 15:31:37 +00:00
Niels Keurentjes
1017ab817f
Corrected parameter handling.
2016-03-04 09:26:11 +01:00
Barry vd. Heuvel
eae6d8017a
Make remove with dependencies default
2016-03-04 08:53:22 +01:00
Niels Keurentjes
a3b2628748
Show -t incorrectly expanded self.version constraints. Fixes #4999
2016-03-04 08:20:35 +01:00
Jordi Boggiano
02ed27b16b
Add outdated lock and failure to parse deps to quiet output, fixes #4393
2016-03-03 12:21:49 +00:00
Jordi Boggiano
e94066967c
Add debugging info about proxy usage, refs #4332
2016-03-02 18:28:44 +00:00
Jordi Boggiano
8fc659fea3
Allow loading of transport-options in package repo, fixes #4991
2016-03-02 17:44:09 +00:00
Jordi Boggiano
6d1e8ebf90
Avoid warnings due to duplicate loading of auth files, fixes #4971
2016-03-02 14:10:21 +00:00
Jordi Boggiano
9d95456bb0
Fix bug in handling of special chars in proxy .bat files for binaries, fixes #4990
2016-03-02 14:07:30 +00:00
Jordi Boggiano
76450cc2a1
Merge pull request #4989 from naderman/t/fix-self-reference-transaction-root
...
Ignore self references when anlaysing independent root requirements
2016-03-02 13:26:18 +00:00
Jordi Boggiano
27e1c4358e
Fix show/depends commands to display and abort when a circular dep was reached, fixes #4983
2016-03-02 13:24:07 +00:00
Jordi Boggiano
b93b73e836
Rewrite git unpushed status checks, fixes #4987
2016-03-02 13:00:20 +00:00
Nils Adermann
4af74b54e0
Ignore self references when anlaysing independent root requirements
...
When creating a transaction we try to identify all requirements that are
not themselves required by any other package. If a package references
itself this should not mark it as being required by another package.
2016-03-02 13:03:26 +01:00
Jordi Boggiano
7e1a23eef7
Add missing use statements
2016-03-01 14:09:44 +00:00
Jordi Boggiano
fea99bcb1b
Clarify the fetch/push URL selection for github repos and various protocols, fix regression
2016-03-01 13:43:59 +00:00
Jordi Boggiano
b080a73840
Fix broken test on windows, fixes #4973
2016-03-01 13:25:39 +00:00
Jordi Boggiano
6f42b9c865
Disable git, svn, http protocols for VCS downloaders, fixes #4968
2016-03-01 13:20:35 +00:00
Jordi Boggiano
4207a33ccf
Fix escaping
2016-02-29 18:46:21 +00:00
Jordi Boggiano
8cfbe7023d
CS fixes
2016-02-29 18:12:51 +00:00
Jordi Boggiano
4b0624a93a
Fix regression in create-project
2016-02-29 18:09:56 +00:00
Jordi Boggiano
bf1ddaa298
Fix method name for php5
2016-02-29 17:51:34 +00:00
Jordi Boggiano
1aec1c1fc8
Add --repository flag to init command, and rename --repository-url to --repository in create-project, fixes #4200 , closes #4207 , closes #2604 , fixes #2920
2016-02-29 17:33:46 +00:00
Jordi Boggiano
b6b2635f42
Merge pull request #4970 from barryvdh/list-installed-default
...
Change default behavior of show/list to --installed by default
2016-02-29 16:29:34 +00:00
Jordi Boggiano
a0de19f74d
Fix feedback, refs #3199
2016-02-29 15:32:49 +00:00
Jordi Boggiano
d24ea66892
Merge remote-tracking branch 'fduch/console-select-support'
2016-02-29 15:24:28 +00:00
Jordi Boggiano
c2d78e5ce0
Restore GC and add comments to clarify why we turn it off, fixes #3488 , closes #3503
2016-02-29 15:05:11 +00:00
Jordi Boggiano
0ed5b541a9
Fix CS
2016-02-29 15:05:11 +00:00
Jordi Boggiano
6825c04a62
Merge pull request #4799 from balbuf/balbuf/honor-class-name
...
createPackage() method should use the $class argument it accepts
2016-02-29 14:53:20 +00:00
Jordi Boggiano
2ff19e4c62
Fix JsonConfigSource fallback on php5.3, refs #4972
2016-02-29 14:17:24 +00:00
Jordi Boggiano
f2e2dd8f86
Merge pull request #4972 from curry684/code-quality
...
Code quality
2016-02-29 14:14:49 +00:00
Jordi Boggiano
993942ba54
Escape quotes and backslashes for safety
2016-02-29 14:04:54 +00:00
Jordi Boggiano
fff71e5dde
Merge pull request #4971 from e-moe/bugfix/4936-check-auth-overwrite
...
fix #4936 : warn user about auth overwriting
2016-02-29 13:57:07 +00:00
Jordi Boggiano
49b0bd75b3
Add handling for dir, file and class magic constants when loading plugins, fixes #4975
2016-02-29 13:50:36 +00:00
Nikolay Labinskiy
957e1ccb47
4936: warn user about auth overwriting
2016-02-28 17:07:16 +02:00
Jordi Boggiano
070ee50693
Actually check for the dir existence before retrying, refs #4009
2016-02-28 14:08:43 +00:00
Jordi Boggiano
c502601c4b
Retry on RecursiveDirectoryIterator failure to open dir, refs #4009
2016-02-28 14:06:36 +00:00
Niels Keurentjes
f794ee7870
Fixes for implicit variable declarations, return type mismatches and invalid method declarations.
2016-02-27 23:39:57 +01:00
Niels Keurentjes
b059cbe37c
Removed unused variables and includes, fixed functions being called with more arguments than declared.
2016-02-27 23:21:11 +01:00
Niels Keurentjes
98845dca6f
PHP 5.3 does not support $this in closures. Nested reuse of identical variables separated.
2016-02-27 22:45:44 +01:00
Niels Keurentjes
868e607f17
Missing parent constructor calls.
2016-02-27 22:39:03 +01:00
Barry vd. Heuvel
2d2affdf56
Keep --installed option for BC
2016-02-27 22:35:13 +01:00
Barry vd. Heuvel
5fdb4c8af3
Make --installed default for show/list
2016-02-27 21:46:26 +01:00
Jordi Boggiano
823266407f
Rollback changes in case the installer fails in remove/require commands, fixes #3464
2016-02-27 16:58:45 +00:00
Jordi Boggiano
b9a3ef73c0
Allow skipping author, fixes #4969
2016-02-27 16:44:46 +00:00
Niels Keurentjes
d60e0c1842
Accidentally indented.
2016-02-26 14:45:19 +01:00
Niels Keurentjes
379d769132
Troubleshooting and warning in code related to issues with native ZipArchiver.
2016-02-26 08:38:39 +01:00
Jordi Boggiano
269e545921
Make sure we can probe http requests, fixes #4965
2016-02-26 00:05:09 +00:00