Jordi Boggiano
b59489f6ae
Merge remote-tracking branch 'edas/exception-on-broken-signature'
2013-02-21 17:04:41 +01:00
Jordi Boggiano
9521d1e7ad
Make use of new hashed provider filenames, fixes #1431 , refs composer/packagist#283
2013-02-21 16:50:04 +01:00
Eric Daspet
a8a99cee24
Fix RepositorySecurityException class name
2013-02-15 09:52:31 +01:00
Eric Daspet
59f8be3b92
Throw Exception on broken signature
...
This is related to issue #1562
With a fresh installation of Composer I had the following message:
> The contents of https://packagist.org/p/providers-latest.json do not
match its signature, this is most likely due to a temporary glitch but
could indicate a man-in-the-middle attack.
> Try running composer again and please report it if it still persists.
This was *probably* a temporary glitch, as the error did not appear
again, even after a full reinstallation of all packages.
*However* Composer had no way to differentiate a man-in-the-middle
attack and a temporary glitch. The installation / update did continue
despite the problem and files where installed / updates with no easy
rollback. These files may have been corrupted with malicious code and I
have no way to check they don't.
This is a *serious* security issue.
The code in [ComposerRepository line
434](https://github.com/composer/composer/blob/master/src/Composer/Repos
itory/ComposerRepository.php#L434) states
```php
// TODO throw SecurityException and abort once we are sure this can not
happen accidentally
````
Even if the broken signature may happen in accidentally in a standard
process, if it may be a security issue, we have to abort the procedure,
or at least ask for confirmation to the user. If it helps continuing
despite the temporary glitch, it may be possible to add a command line
switch like `--ignore-signature` to force the process to continue.
Proposed :
Send a RepositorySecurityException instead of the warning, even if this
may happen accidentally
2013-02-14 15:53:40 +01:00
Jordi Boggiano
17a5bdf162
Normalize github URLs generated by the GitHubDriver, fixes #1551
2013-02-13 12:55:14 +01:00
Jordi Boggiano
432955e0ae
Fix github url escaping, raw.github.com doesnt like escaped slashes
2013-02-11 09:34:50 +01:00
Jordi Boggiano
8904888a74
Add php-64bit package if the php version has 64bit ints, fixes #1506 , fixes #1511
2013-01-23 15:55:48 +01:00
Jordi Boggiano
514a3cde77
CS fixes
2013-01-05 20:01:58 +01:00
Jordi Boggiano
5b24a48827
Allow disabling svn branches/tags, fixes composer/satis#43
2012-12-08 17:41:46 +01:00
Jordi Boggiano
04c6670f0c
Detect invalid ssh URLs, fixes #1124
2012-12-05 23:23:01 +01:00
Jordi Boggiano
224934831d
Change all github archive URLs to API URLs and handle fallback for those to nodeload
2012-12-05 19:20:52 +01:00
Chris Smith
120f52c632
Generate private zipball urls for private repositories
2012-12-05 18:55:13 +01:00
Christoph
cebd43e735
fixed detection of inactive branches in hg
2012-12-03 01:21:56 +01:00
Jordi Boggiano
a8f74a0983
Allow notification from locked installs, fixes #1368 , fixes #1372 , fixes #1369
2012-11-29 09:24:28 +01:00
Jordi Boggiano
e868c9706b
Add support for batch notifications
2012-11-28 18:44:49 +01:00
Raphael Kallensee
9713bf8bec
Fix for PearRepository scheme handling, broke ChannelReaderTest.
2012-11-23 18:36:22 +01:00
Raphael Kallensee
0be2fd12e4
Fix for PEAR package downloading in PearRepository: now using https as
...
scheme if the PEAR channel uses https. The old behavior broke installing
PEAR packages from https-only PEAR channels.
2012-11-23 18:08:32 +01:00
Jordi Boggiano
15475f0ef2
Rename cache dirs to consolidate them by purpose
2012-11-23 00:15:14 +01:00
Jordi Boggiano
326fcbcab7
Enforce UTC on all datetime instances, set lock release date to datetime always, refs #923
2012-11-20 14:36:42 +01:00
Jordi Boggiano
172414a1f0
Add support for ~/+ in addition to - as separator between PHP version and build details, fixes #1322
2012-11-14 10:55:51 +01:00
Jordi Boggiano
4f5d08e2ad
Add InvalidRepositoryException
2012-11-08 15:05:00 +01:00
Igor Wiedler
4959c2bdc6
Replace references of a11n with a12n where appropriate
...
Authorization => Authentication.
2012-11-07 13:34:31 +01:00
Jordi Boggiano
cbd91b5952
Fix FILTER_VALIDATE_URL not supporting IDNs
2012-11-05 15:39:43 +01:00
Jordi Boggiano
0c61e9d345
Add warning/errors flags to VCS repo output
2012-11-05 12:38:11 +01:00
Jordi Boggiano
dae7f3cee7
Add a way to know if any branch failed loading
2012-11-05 12:28:53 +01:00
Jordi Boggiano
61bd34df55
Make sure error output is clearly visible
2012-11-05 12:24:50 +01:00
Jordi Boggiano
967c771b26
Add warnings to ValidatingArrayLoader that are simply stripped by default, add reporting of warnings when loading branches
2012-11-05 12:08:02 +01:00
Jordi Boggiano
1682532b80
Update code to use new github archive URLs
2012-11-04 14:01:22 +01:00
Jordi Boggiano
bb701da8c2
Do not overwrite output in verbose mode
2012-11-02 18:12:40 +01:00
Martin Hasoň
45c1c3f881
Fixed package name for stability test in ComposerRepository
2012-10-30 22:20:49 +01:00
Bilal Amarni
b10c832be0
fixed a typo
2012-10-28 09:57:42 +01:00
Jordi Boggiano
2b06503027
SvnDriver fixes
2012-10-26 01:53:34 +02:00
Pascal Borreli
83fd3967f0
Fixed PHPDoc
2012-10-24 23:44:40 +00:00
Pascal Borreli
5eead93250
Fixed typos
2012-10-24 23:14:04 +00:00
Jordi Boggiano
125ff3e4f5
Fix root aliasing with new providers repo format
2012-10-24 16:11:32 +02:00
Jordi Boggiano
ad9f887edd
Clarify error message to sound less scary until we can guarantee it
2012-10-23 10:53:17 +02:00
Chris Smith
9ed481ef02
Fix handling of legacy Composer repositories
2012-10-22 21:40:32 +01:00
Jordi Boggiano
e887f6cea9
Fix CS
2012-10-22 20:25:11 +02:00
Jordi Boggiano
89d4df990a
Use JsonFile to decode cached entries
2012-10-22 17:56:30 +02:00
Jordi Boggiano
bebd1ce9c7
Always check for OAuth token in git config, fixes #1243
2012-10-22 17:11:34 +02:00
Jordi Boggiano
1760b1e093
Prevent CompositeRepository instances from being nested
2012-10-22 14:29:34 +02:00
Jordi Boggiano
fef3dacdfb
Reset ids of aliased packages as well
2012-10-22 14:28:55 +02:00
Jordi Boggiano
39e69a3b12
Refactor OAuth acquisition code to generalize it
2012-10-21 17:56:57 +02:00
Jordi Boggiano
bf5f34a114
Merge remote-tracking branch '1stvamp/github-tokens-from-git-config'
2012-10-21 17:12:14 +02:00
Jordi Boggiano
338127ff9c
Disable failure on hash mismatch until it can be proven to work reliably
2012-10-21 16:10:47 +02:00
Jordi Boggiano
3116c979d3
Fix undefined var, fixes #1235
2012-10-21 16:03:05 +02:00
Jordi Boggiano
573e4b2a7c
Merge branch 'newrepo'
2012-10-21 14:18:00 +02:00
Wes Mason
5fb0403276
Use process executor instead of exec to run git config
2012-10-21 10:05:56 +01:00
Wes Mason
1442c1e026
Damnable tabs!
2012-10-21 10:02:33 +01:00
Wes Mason
2cb07dd2fe
Allow use of Github OAuth2 token stored in git config
2012-10-21 01:06:56 +01:00
Jordi Boggiano
0a3097c569
Merge remote-tracking branch 'bboer/feature/svn-alternative-structures'
...
Conflicts:
src/Composer/Repository/Vcs/GitHubDriver.php
2012-10-19 12:19:19 +02:00
Jordi Boggiano
5051e7a0a2
Only try to authorize when fetching the repo info, not subsequent calls, refs #423
2012-10-19 10:24:00 +02:00
Jordi Boggiano
32282e7461
Add hostname to the OAuth app name
2012-10-18 17:08:34 +02:00
Jordi Boggiano
a9811c4e40
Store and reload the github token to/from the config
2012-10-18 16:48:44 +02:00
Jordi Boggiano
3b01d26d67
Swap user credentials for an OAuth token from GitHub
2012-10-18 16:48:42 +02:00
Thomas Adam
1bd5d88b02
quick workaround for Github API limit
2012-10-18 16:48:41 +02:00
Jordi Boggiano
5978197b5d
Reset package IDs before they can be used in the pool in case there are already some in the cache
2012-10-18 12:57:55 +02:00
Jordi Boggiano
ee0cd07468
CS fixes
2012-10-18 10:35:06 +02:00
Jordi Boggiano
541bcabbc0
Actually check the hash after downloading
2012-10-15 14:37:27 +02:00
Jordi Boggiano
07f72e9fb6
Add support for provider listings
2012-10-14 16:33:53 +02:00
Jordi Boggiano
a3f9accd37
Fix various dumb issues
2012-10-13 18:54:48 +02:00
Jordi Boggiano
aafc1f7857
Make sure alias package have a repo instance set
2012-10-13 17:19:06 +02:00
Jordi Boggiano
41c7432fef
Do not fetch from repo for packages that obviously can not be there
2012-10-13 17:18:47 +02:00
Jordi Boggiano
c0e5736ae7
Add support for one-file-per-provider composer repositories
2012-10-12 18:24:26 +02:00
Jordi Boggiano
fde3477563
Report issues in HgDriver as well
2012-10-12 11:23:30 +02:00
Jordi Boggiano
08670e7666
Report errors properly when git driver fails to write in the cache, refs #482
2012-10-12 11:16:47 +02:00
Jordi Boggiano
116b822953
Fix loop and add missing options
2012-10-11 21:35:51 +02:00
Jordi Boggiano
1d80720405
Add retries and failover of all jsons to cache even if the main one worked
2012-10-11 21:26:11 +02:00
Jordi Boggiano
fb296972ef
Enable https for packagist when possible
2012-10-11 20:57:31 +02:00
Jordi Boggiano
b3077bc4bc
Merge pull request #1177 from sandermarechal/stream-context
...
Allow setting stream context options
2012-10-04 09:18:08 -07:00
Sander Marechal
6cf860669f
Add repository stream context options
...
Add support for passing stream context options to the
StreamContextFactory. This allows support for SSH keyfiles, SSL
certificates and much more. Example:
{
"repositories": [
{
"type": "composer",
"url": "ssh2.sftp://host:22/path/to/packages.json",
"options": {
"ssh2": {
"username": "composer",
"pubkey_file": "/path/to/composer.key.pub",
"privkey_file": "/path/to/composer.key"
}
}
}
]
}
2012-10-03 14:49:41 +02:00
Jordi Boggiano
e188f69a0f
Merge remote-tracking branch 'origin/master'
2012-10-03 11:18:44 +02:00
Jordi Boggiano
4998bab944
Show warning if the svn binary is missing
2012-10-03 11:14:37 +02:00
Sander Marechal
4799053ca9
Allow dot in URL scheme
...
This makes it possible to support SSH2 urls, like ssh2.scp://
See: http://www.php.net/manual/en/wrappers.ssh2.php
2012-10-03 10:50:02 +02:00
Zsolt Szeberenyi
5201564c0f
Added support for hg bookmarks
2012-10-02 13:41:03 +02:00
Joseph Bielawski
4772db1460
Add missing `use` in HgDriver
...
Closes #1165
2012-10-01 14:59:02 +03:00
Jordi Boggiano
6bd7ca0230
Fix typos and simplify code
2012-09-20 11:03:58 +02:00
Jordi Boggiano
35245eb817
Add support for local urls and better error reporting to HgDriver
2012-09-20 10:38:35 +02:00
Jordi Boggiano
c14826dd1e
Fix exception handling when loading repos
2012-09-08 13:49:37 +02:00
Jordi Boggiano
fe4516aff8
Clarify exception messages when a package can not be loaded from a composer repository, fixes #1070
2012-09-08 02:00:02 +02:00
Povilas Balzaravicius Pawka
57d1b5a37d
Issue #1056 . Fixed callback call error on search command.
2012-09-06 09:15:29 +03:00
bboer
00361e0087
Fixed tests
2012-08-31 08:12:20 +02:00
bboer
d1a452b00b
Made repoConfig available for the VcsDriver to be able to provide additional configuration options easily.
2012-08-30 16:52:37 +02:00
Jordi Boggiano
781e0d4f55
Add detection of gitolite user for git repos
2012-08-29 15:44:52 +02:00
Jordi Boggiano
803178d28f
CS fixes for #1038
2012-08-29 15:24:05 +02:00
Christoph Hochstrasser
560d6daccf
Using separate variable for URL parts
2012-08-29 15:12:08 +02:00
Christoph Hochstrasser
841efc98a6
Appending 'packages.json' only if not present in URL
2012-08-29 15:08:04 +02:00
bboer
93628c42d8
Add support for alternative structures
2012-08-29 13:26:53 +02:00
Jordi Boggiano
c14bc368b0
Fix memory usage of the update command
2012-08-24 02:29:37 +02:00
Jordi Boggiano
e1bd2fd6df
Clean ups after feedback
2012-08-24 02:29:36 +02:00
Jordi Boggiano
e3b6bd781c
Add RepositoryInterface::filterPackages to stream ops on lists
...
This cuts down on memory usage and also speeds up the search command to a third of its previous time
2012-08-24 02:29:33 +02:00
Jordi Boggiano
d6de4a0036
Rename Package interfaces to reduce BC issues
2012-08-24 02:29:31 +02:00
Jordi Boggiano
8a275336a1
CS cleanups
2012-08-24 02:29:30 +02:00
Jordi Boggiano
e46d26cb9b
Add loadAliasPackage to the StreamableRepositoryInterface and clear up responsibilities between Pool and Repositories
2012-08-24 02:29:29 +02:00
Jordi Boggiano
26e8217db7
Remove duplication of branch alias parsing code
2012-08-24 02:29:26 +02:00
Jordi Boggiano
2d4076e9b2
Add support for aliases in streamed repos
2012-08-24 02:29:24 +02:00
Jordi Boggiano
c8a685be6b
Reduce memory usage by only loading packages that are actually needed, fixes #456
2012-08-24 02:29:23 +02:00
Jordi Boggiano
f08c748658
Fix tests, fix handling of branches with slashes in GitDriver, fixes #935
2012-08-24 02:06:25 +02:00
Jordi Boggiano
997ef763b4
urlencode() github calls for safety, refs #935
2012-08-24 01:10:13 +02:00
Jordi Boggiano
242df060c7
Clarify exception message
2012-08-21 16:04:19 +02:00
Jordi Boggiano
a54bf6269e
Improve error messages when network failures occur
2012-08-17 16:51:58 +02:00
Jordi Boggiano
ec301ea8bb
Output error if a VCS repo has no package at all instead of silently going through
2012-08-14 11:19:40 +02:00
Jordi Boggiano
518984b70d
Output error if a local filesystem VCS repo points to a non-existing dir
2012-08-14 11:19:15 +02:00
Sebastiaan Stok
9270904765
fixed issue #992 - branch name not properly escaped
2012-08-10 11:43:37 +02:00
Jordi Boggiano
2d41774bcc
Add warning when loading an https repo if openssl is disabled, refs #930
2012-07-20 10:27:18 +02:00
Nils Adermann
7c547f93bb
Merge pull request #928 from Seldaek/validation
...
Validation
2012-07-18 08:31:29 -07:00
Jordi Boggiano
67b846f4e9
Fix undefined variable in svn driver
2012-07-18 17:26:19 +02:00
Jordi Boggiano
b0151a4ce5
Allow the loader of the VcsRepository to be overriden
2012-07-18 17:21:21 +02:00
Jordi Boggiano
d80180c2b9
Allow notifyUrl to be a complete URL
2012-07-18 14:57:17 +02:00
Jordi Boggiano
5ec41d83b4
Fix non-array return value in some cases on php 5.3.2, fixes #927
2012-07-18 14:23:05 +02:00
Jordi Boggiano
1f31810901
Prevent duplicate PEAR replaces if the given vendorAlias equals the channel alias
2012-07-17 16:49:02 +02:00
Robert Schönthal
0cd453449b
minor changes to JsonFile::parseJson for Drivers
2012-07-03 12:45:07 +02:00
Robert Schönthal
c517ac6404
fixed issue #347 added file to json validation exception
2012-07-03 12:37:58 +02:00
Alexey Prilipko
22aef0124e
Revert Locker change, ignore PEAR packages whose version cannot be parsed.
2012-07-03 19:18:58 +11:00
Alexey Prilipko
ac3cebc633
Update PEAR Package Extractor to use 'task:replace', 'phprelease' commands and install role='script' files
...
Add PearInstaller
Change PEAR packages type from 'library' to 'pear-library' and dist type from 'pear' to 'file'
Remove PearDownloader
Refactor Channel Installer
2012-07-03 19:18:58 +11:00
Alexey Prilipko
77715e254a
Fix exception message template
2012-07-03 19:11:58 +11:00
Alexey Prilipko
f2853c842b
Review fixes
2012-07-03 19:11:57 +11:00
Alexey Prilipko
e173f11b37
Add PEAR channel reader & Update PearRepository to use it.
2012-07-03 19:11:57 +11:00
Nils Adermann
4eb5f73718
Only create alias package in repositories on the fly if necessary, fixes #793
2012-07-01 18:51:13 +02:00
Jordi Boggiano
656feda837
Revert previous change, use GIT_ASKPASS env var instead
2012-06-27 18:28:49 +02:00
Jordi Boggiano
4ee1ff46a8
Try ssh before http auth, and make sure ssh fails fast if no login is possible
2012-06-27 18:00:52 +02:00
Jordi Boggiano
74c2fd5f06
Merge pull request #824 from beryllium/bug823
...
PECL-UUID does not define a version constant, use phpversion() instead
2012-06-23 10:26:38 -07:00
Jordi Boggiano
66e9dcddf4
CS fixes
2012-06-23 11:58:18 +02:00
Jordi Boggiano
de449aa144
Merge remote-tracking branch 'PSeiffert/master'
...
Conflicts:
src/Composer/Factory.php
src/Composer/Repository/RepositoryManager.php
2012-06-23 11:42:13 +02:00
Kevin Boyd
09be4ed936
PECL-UUID does not define a version constant, so we should use phpversion() to fetch the required information
2012-06-22 23:09:57 -07:00
Jordi Boggiano
95bc5c4898
Fix openssl/pcre matches, and skip other exts properly
2012-06-22 20:07:41 +02:00
Jordi Boggiano
887d913eb6
Merge remote-tracking branch 'ChristianRiesen/master'
2012-06-22 19:48:51 +02:00
Christian Riesen
70e7194b07
Changes after excellent feedback from Jordi
2012-06-22 17:16:07 +02:00
Christian Riesen
432815df67
Added more libraries to PlatformRepository
2012-06-22 15:46:36 +02:00
Jordi Boggiano
ccc6fa3714
Merge pull request #775 from palex-fpt/PR-746
...
PEAR Packages extraction based on package.xml format
2012-06-22 06:15:38 -07:00
Christian Riesen
8d3c85225f
Changed PlatformRepository to handle libraries as well now
2012-06-22 14:54:03 +02:00
Christian Riesen
7b49b013ec
PlatformRepository now knows curl and libxml versions
2012-06-22 13:51:26 +02:00
Jordi Boggiano
a06ebdd8ef
Add caching to svn metadata
2012-06-18 15:38:47 +02:00
Alexey Prilipko
71ac073ebe
Add 'include-path' option to PEAR packages
2012-06-06 13:00:35 +11:00
Jordi Boggiano
3aeb6a8f2d
Minor robustness fix
2012-05-31 14:36:45 +02:00
Jordi Boggiano
740d3aa1e3
Generate source urls with labels and not identifiers
2012-05-31 11:49:10 +02:00
Jordi Boggiano
2257d0b550
Guess issues/source support info for github packages
2012-05-31 10:54:12 +02:00
Jordi Boggiano
2b2a5d0a92
Fix release- tags not being parsed
2012-05-28 14:41:26 +02:00
Jordi Boggiano
d21032ace5
CS fixes
2012-05-28 01:58:49 +02:00
Jordi Boggiano
c440b4594a
More PSR-2 goodness
2012-05-22 17:13:15 +02:00
Jordi Boggiano
1bd4ccbd54
php-cs-fixer magic
2012-05-22 12:07:08 +02:00
Jordi Boggiano
794b51fcdd
Merge remote-tracking branch 'naderman/remove-outdated-alias-code'
2012-05-21 11:48:37 +02:00
Christophe Coevoet
c2d3c0509c
Fixed the check for local git repositories
2012-05-17 15:08:54 +02:00
Christophe Coevoet
4404c5f287
Revert "Merge remote-tracking branch 'github-ercanozkaya/master'"
...
This reverts commit b5eededbe9
, reversing
changes made to 799a478f2a
.
This change was wrong as the GitDriver was then telling it supports
all local URIs even when they are not git repositories.
2012-05-17 14:54:45 +02:00
Ercan Özkaya
ca217bd48f
Add support for file:// URIs to GitDriver
2012-05-17 15:36:02 +03:00
Nils Adermann
be250fbb8b
Remove alias loading code which is no longer necessary
...
Since alias packages do not get dumped anymore, only original packages
will ever be in Filesystem repositories. Alias are created on the fly
based on alias info in the composer.json/composer.lock and on branch
alias data in the original package.
2012-05-15 19:17:17 +02:00
Jordi Boggiano
ba9676e0f2
Add caching for metadata in github driver
2012-05-13 22:55:01 +02:00
Jordi Boggiano
0a0a6b1813
Fix wrong var name, refs #674
2012-05-13 17:11:03 +02:00
Nils Adermann
7c7cac61b6
Merge remote-tracking branch 'github-seldaek/stability'
...
* github-seldaek/stability:
Add stability docs
Add test for Pool handling and refactor a couple things
Add support for stabilities in lock file
Infer stability flags for requirements that have an explicit version required of a lower stability
Add InstalledArrayRepository to make sure the root package is not purged by the Pool because of a lower stability
Basic handling of stability flags
Add list of stabilities to base package
Add minimum-stability flag on root package to filter packages by stability
Add CompositeRepo::getRepositories
Add package stability
2012-05-12 18:28:32 +02:00
Jordi Boggiano
c2933028e8
Make sure github driver is used for all github urls
2012-05-12 18:24:07 +02:00
Jordi Boggiano
fabf5c2f6d
Add InstalledArrayRepository to make sure the root package is not purged by the Pool because of a lower stability
2012-05-09 20:03:19 +02:00
Jordi Boggiano
b0134b56c5
Add CompositeRepo::getRepositories
2012-05-09 19:10:02 +02:00
Nils Adermann
655588a5e0
Merge pull request #659 from Seldaek/github_https_fallback
...
Github https fallback
2012-05-09 09:57:04 -07:00
Nils Adermann
0c1944a9d0
Let the solver handle aliases instead of the installer
2012-05-09 15:15:39 +02:00
Paul Seiffert
1713acf011
Coding standards and Cosmetics
...
Processing feedback given by @stof and @Seldaek.
2012-05-09 09:50:08 +02:00
Paul Seiffert
b3a5ca93c7
Added comments -> IDE friendliness
2012-05-08 23:26:01 +02:00
Paul Seiffert
7308049056
Added removePackage() to Repository\RepositoryInterface in order to provide to be able to rely on the existance of this method in all repositories. Had to add this method to the Repository\CompositeRepository.
2012-05-08 23:06:10 +02:00
Jordi Boggiano
7bfe031768
VcsDrivers now send proper originUrl for authentication
2012-05-06 17:18:26 +02:00
Bastian Hofmann
4b3fc2b5fa
Merge branch 'master' of git://github.com/composer/composer
...
Conflicts:
src/Composer/Repository/PearRepository.php
2012-05-06 14:42:13 +02:00
Bastian Hofmann
7501009d74
added tests for PearRepository
2012-05-06 14:40:47 +02:00
Jordi Boggiano
c454d93a20
Move all logic within try/catch to prevent an incorrect version from blowing up the whole package
2012-05-06 13:28:37 +02:00
Jordi Boggiano
58276d0a52
Warn the user but do not fail hard when a repo can not be synced
2012-04-29 20:55:05 +02:00
Jordi Boggiano
b0b3e17a37
Report errors when a git repo can not be synced up
2012-04-29 20:46:15 +02:00
Jordi Boggiano
b3164de813
Fix tests
2012-04-29 20:43:56 +02:00
Jordi Boggiano
115dc407fa
Merge remote-tracking branch 'GromNaN/git-dir'
2012-04-29 18:53:01 +02:00
Jordi Boggiano
2dffa612a3
Merge remote-tracking branch 'igorw/root-install-twice'
2012-04-29 17:02:41 +02:00
Daniel Holmes
d44b81527b
Fixed variable reference in verbose pear repository message
2012-04-29 18:07:16 +10:00
Jordi Boggiano
8ff497ac6f
Skip filter_var on 5.3.2 since it is buggy
2012-04-27 14:04:39 +02:00
Igor Wiedler
0995933183
Do not install root package as a vendor if some dependency requires it, closes #480
...
Also add some tests for the installer.
2012-04-27 12:29:11 +02:00
Jerome Tamarelle
610f15a768
Fix unit tests for VcsRepository
2012-04-27 11:03:57 +02:00
Jerome Tamarelle
f0ea097134
Remove umask
2012-04-27 11:03:57 +02:00
Jerome Tamarelle
8b408449f6
Create ~/.composer/cache.hg directory if not exists
2012-04-27 11:03:57 +02:00
Jerome Tamarelle
23ef8a419a
Fix var scope in HgDriver
2012-04-27 11:03:57 +02:00
Jérôme Tamarelle
d200481037
Fix tmp dir for HgDriver
2012-04-27 11:03:56 +02:00
Jerome Tamarelle
cc6e1397b2
Fix var scope
2012-04-27 11:03:56 +02:00
Jerome Tamarelle
da823f5f19
Store vcs repositories in composer home to prevent permission issues
2012-04-27 11:03:56 +02:00
Jerome Tamarelle
949728f812
Remove redundant __contruct from VcsDriver implementations and move init code to initialize method
2012-04-27 11:03:56 +02:00
Jerome Tamarelle
017ebabcb5
Pass composer configuration to VcsDriver
2012-04-27 11:03:56 +02:00
Jerome Tamarelle
d489d2aa3c
Store cached git repositories in user HOME to avoid file permission issues
2012-04-27 11:03:56 +02:00
Jordi Boggiano
70ad8274cd
Work around poorly configured php
2012-04-26 15:47:22 +02:00
Jordi Boggiano
ef300ca56a
Fix tests
2012-04-18 01:06:23 +02:00
Jordi Boggiano
a5e00a9e96
Fix PEAR loading, fixes #590
2012-04-17 23:35:26 +02:00
Jordi Boggiano
466d953b5f
Add verbose output to composer compat mode
2012-04-17 17:32:54 +02:00
Jordi Boggiano
9c72b093a3
Merge remote-tracking branch 'bashofmann/master'
2012-04-17 17:30:22 +02:00
Bastian Hofmann
a86ea59742
various fixes for composer interaction with pear repositories:
...
- corrected pear repository base url from channel.xml is now used instead of a hardcoded host/rest/* endpoin
t
- XML is now parsed with LIBXML_NOERROR to accomondate pear repositories with slightly invalid XML (e.g. components.ez.no)
- instead of following links in the returned xml files the pear api structure is now hardcoded so that pear repositories with invalid links also work (again components.ez.no). additional benefit: this removes the need for some str_replace calls
- for pear packages with a packages.json file: 'pear-'.$channelName is not added to package names if this is already part of the package name (see pear.phpunit.de)
2012-04-16 16:54:44 +01:00
Jordi Boggiano
f63df842b3
Fix alias handling with --dev installs, fixes #579
2012-04-15 19:05:16 +02:00
Jordi Boggiano
89e095b4b5
Handle --dev installs/updates
2012-04-14 23:38:10 +02:00
Jordi Boggiano
b094ef7155
Add repository notification API support
2012-04-13 02:59:23 +02:00
Jordi Boggiano
2d49090ffd
Make sure branches have proper .x suffix so that they can be parsed properly
2012-04-13 02:35:52 +02:00
Jordi Boggiano
273e0f777b
Fix branch extraction, fixes #565
2012-04-12 11:23:56 +02:00
Jordi Boggiano
9da7fbbf37
Fix project aliases being redownloaded since they had no version
2012-04-10 11:55:34 +02:00
Jordi Boggiano
fc29487a2a
Add home config key and use it to create the cache instance
2012-04-09 16:36:06 +02:00
Jordi Boggiano
68a1bc645b
Skip some packages in pear requirements
2012-04-08 23:11:14 +02:00
Nils Adermann
fc1a7a3e23
Merge pull request #536 from Seldaek/new_composer_format
...
Add support for new composer repo format + cache for composer repos
2012-04-06 14:00:25 -07:00
Jordi Boggiano
0d97ec4783
Add cache to the composer repositories
2012-04-06 22:39:43 +02:00
Tiago Ribeiro
61beea3c8b
Updated output when a branch is imported to show the pretty version name
2012-04-06 20:15:32 +01:00
Jordi Boggiano
a476d1f97d
Add support for the new composer repository format
2012-04-06 20:40:31 +02:00
Jordi Boggiano
a67f62990c
Prepare for upcoming format break
2012-04-06 19:56:34 +02:00
Jordi Boggiano
6f8031ac90
Fix error reporting for missing git process
2012-04-06 13:28:47 +02:00
Nami-Doc
1dba604ba1
Update src/Composer/Repository/Vcs/GitDriver.php
2012-04-05 18:46:15 +03:00
Nami-Doc
2c58dbf3a1
better message if git isn't found
2012-04-05 18:21:48 +03:00
Holger Rüprich
9e2c523faa
Function proc_open doesn't accept a scheme for the current working directory, therefore stripped 'file://' for local repositories.
2012-04-04 20:28:47 +02:00
Jordi Boggiano
1cdae66f8f
Fix up git downloader and git driver commands
2012-04-04 09:09:27 +02:00
Jordi Boggiano
219c31ed0c
Fix git driver updating
2012-04-03 20:07:18 +02:00
Jordi Boggiano
9828472b9e
Improve reliability of GitDriver, refs #485
2012-04-03 00:22:58 +02:00
Jordi Boggiano
2844a5673d
Use refs API since it is more stable than the branches API with force-pushes, fixes #514
2012-04-02 20:53:03 +02:00
Nils Adermann
85caa65088
Merge pull request #520 from Seldaek/pear_composer
...
Detect PEAR repos that support composer via Pirum
2012-04-01 14:06:28 -07:00
Jordi Boggiano
ecb82e1784
Detect PEAR repos that support composer via Pirum
2012-04-01 21:53:58 +02:00
Jordi Boggiano
d53ac36636
Add debug info and remove autoload parsing that was too slow
2012-04-01 19:54:29 +02:00
Jordi Boggiano
4b2283e41c
Add autoload info to PEAR packages
2012-04-01 18:58:03 +02:00
Jordi Boggiano
1fe24a3837
Add support for github URLs in git driver
2012-04-01 18:54:21 +02:00
Jordi Boggiano
6d5b4d606c
Add warning in verbose mode if drivers can not be used because of missing openssl
2012-04-01 18:52:53 +02:00
Tiago Ribeiro
67885d8585
Added isDebug to IOInterface and improved debug messages for VcsRepositories
2012-04-01 13:37:26 +01:00
Jordi Boggiano
7a28a2d83a
Add support for new GitHub API
2012-03-29 17:52:52 +02:00
Jordi Boggiano
7285536737
Fix exception handling
2012-03-25 00:39:28 +01:00
Jordi Boggiano
5a7abfd84f
Remove code duplication in Svn classes
2012-03-25 00:29:14 +01:00
Jordi Boggiano
cd2e5bf2e0
Make SvnDriver::supports less greedy and more realistic
2012-03-24 23:21:46 +01:00
Jordi Boggiano
30d4080014
Support windows local paths
2012-03-24 23:19:11 +01:00
Jordi Boggiano
8fb9c4bf3b
Svn related coding style/consistency fixes and minor improvements
2012-03-24 23:07:10 +01:00
Jordi Boggiano
ab9fc59d30
Add missing license headers
2012-03-24 22:39:34 +01:00
Jordi Boggiano
6c2b78a669
Merge remote-tracking branch 'till/svn-auth-reloaded'
2012-03-24 22:34:14 +01:00
Jordi Boggiano
7dfb2724cb
Fix PEAR dependencies
2012-03-23 17:10:58 +01:00
till
434f10f2d7
* more cs fixes
2012-03-23 16:32:46 +01:00
till
c6653f0711
* fix up CS suggestions from stof/seldaek
2012-03-23 16:03:52 +01:00
Till Klampaeckel
af8d4212bb
Merge pull request #3 from toastedghost/svn-auth-reloaded-imp
...
Improve 'getTags()' and 'getBranches()'
2012-03-23 07:52:10 -07:00
Flo
80bb040468
Improve 'getTags()' and 'getBranches()'
2012-03-23 00:29:19 +01:00
Beau Simensen
a6366be5a6
Handle auth challenge in SvnDriver supports.
2012-03-22 14:58:52 -07:00
till
059bde1adb
* refactored with Composer\Util\Svn::doAuthDance()
2012-03-22 18:40:49 +01:00
till
c6566825ad
Merge remote-tracking branch 'upstream/master' into svn-auth-reloaded
2012-03-22 17:24:35 +01:00
till
17f90f56eb
* move helper functions to util class
2012-03-22 17:18:24 +01:00
Mateusz Heleniak
2a9e8350b0
fixed GitDriver - set correct working directory for cli commands
2012-03-22 00:45:31 +01:00
Nils Adermann
366e98288e
Merge pull request #473 from Seldaek/gzip
...
Automatic gzip encoding support
2012-03-18 15:18:40 -07:00
Jordi Boggiano
bcbdb97cc6
Fix message when no composer file is found in a tag
2012-03-18 23:02:46 +01:00
Jordi Boggiano
72b7b169e7
Fix warning
2012-03-18 22:58:53 +01:00
Jordi Boggiano
e4cce193cf
Fix PEAR repository
2012-03-18 22:12:25 +01:00
Jordi Boggiano
7f65dd7409
Use RemoteFilesystem everywhere we do http requests
2012-03-18 21:26:04 +01:00
till
8f96786693
Merge remote-tracking branch 'upstream/master' into svn-auth-reloaded
2012-03-18 17:36:28 +01:00
till
6f364a85b3
* do not use getSvnCommand (since we are not in object context)
...
* run non interacive instead of piping output to /dev/null
2012-03-18 17:35:32 +01:00
till
c0ec8f16f9
* fixSvnUrl()
...
* extend regex to match more possible svn hosts
2012-03-18 16:36:30 +01:00
till
6d1cdb3e45
* fixSvnUrl(): to prefix absolute paths with file://
2012-03-18 16:36:03 +01:00
Jordi Boggiano
659775a607
Merge remote-tracking branch 'simensen/GitHub404FixPartTwo'
2012-03-15 18:16:31 +01:00
Beau Simensen
38680998ed
Remove the RemoteFilesystem factory and document GitHubDriver->GitDriver fallback.
2012-03-14 18:44:27 -07:00
till
5fdd09104f
resolve conflict
2012-03-12 17:35:15 +01:00
till
a1e1a8c7d7
* use askConfirmation() instead
2012-03-12 17:28:13 +01:00
till
244cc2a8c2
hide password input
2012-03-12 17:25:45 +01:00
till
96298a33dc
catch all failures
2012-03-12 17:24:36 +01:00
Jordi Boggiano
5dba49af54
Show package descriptions in show/search commands, merge similar packages in show, fixes #366
2012-03-11 16:44:18 +01:00
Beau Simensen
1e9cb6bac8
Use factory name instead of generator.
2012-03-10 10:26:03 -08:00
Beau Simensen
340ac49d87
Change `callback` to `callable`
2012-03-10 09:54:42 -08:00
Beau Simensen
6efbc7d531
Enhanced GitHub API/Private Repository support
2012-03-09 23:49:21 -08:00