787 Commits (a15779cf53ca9b673501b6ced374e5c1ba16003f)

Author SHA1 Message Date
Nicolas Bastien 52711d121c Remove unused use statement. 11 years ago
Marc 30049637dc Set some phpdoc to isLocalUrl 11 years ago
schmkr c4d7347ec5 Fixed a coding style issue
Missing a space between if and (
11 years ago
schmkr 652715f4c2 Improved the handling of trunkPath
- $this->baseUrl is only used if $this->trunkPath === false, otherwise
we will use $this->baseUrl with $this->trunkPath.
- scanning through trunkPath will now look for composer.json file
instead of a path that matches $this->trunkPath, beacuse checking
against the latter failed with deeper trunkPaths
- $this->rootIdentifier is now 'trunk' no matter how deep
$this->trunkPath is (with deeper trunkPaths, the name became something
like "dev-trunk-devel-team-packages-package"
11 years ago
mwhittom 2e737ac439 updated to replace double-quotes with single quotes 11 years ago
mwhittom 8207518e04 Updated to clean up code and rename variables to camelcase 11 years ago
Nils Adermann 92b1ee2f7a Add a composer-plugin-api platform package and plugins must require it 11 years ago
mwhittom 774a55befd Updated to match psr-2 spec, fixed header comments 11 years ago
matt-whittom f737e49aae Fixed issue with downloader assuming repository would be VcsRepository 11 years ago
matt-whittom f3722a46ed Updated comments 11 years ago
matt-whittom dd81449998 Updated to remove vfsStreams (no longer needed by tests)
Updated Perforce to cleanup, modified VcsRepository to call cleanup on Driver class
Updated tests, perforce constructor to make tests cleaner/easier
11 years ago
matt-whittom 1019c014e5 using theirs 11 years ago
matt-whittom bab10dd9f8 Added ability to pass p4user and p4password in composer.json 11 years ago
matt-whittom 53d6fcd6d3 using theirs 11 years ago
matt-whittom a5df2851ef Finished cleanup of debug messages. 11 years ago
matt-whittom 43108b4692 Cleanup phase 1
Removed branches - only returning the "master"
11 years ago
matt-whittom 64bda65e11 Updated Perforce driver to use labels
dev checkin, lots of cleanup to do
11 years ago
matt-whittom 36dd7dfea5 Cleaned up perforce code
Checks to see if already logged in to Perforce, and prompts for password if not and P4PASSWD is not set
Checks server url with perforce call
Checks for composer.json file, and returns the contents of the file already retrieved.
11 years ago
matt-whittom 0d061f2530 Added Perforce to Composer 11 years ago
matt-whittom a980228b76 Added Perforce VCS to Composer.
Added Perforce utility class, PerforceDriver and PeforceDownloader
Added PerforceDriverTest
Updated Factory, VcsRepository to incorporate Perforce classes.
Modified ArchivableFilesFinderTest to skip Mercurial test that does not work for me.
11 years ago
Jordi Boggiano 2bf90b544a Fix parsing of trunk in SvnDriver, fixes composer/satis#88 11 years ago
Luís Otávio Cobucci Oblonczyk 0b77a59af6 Repository options must be replicated on package when dist file is under
repository base dir
11 years ago
Jordi Boggiano d017e3f209 Adjust GitDriver tag parsing to resolve to SHAs 11 years ago
Danack abfefd1faa Improved variable name. 11 years ago
Danack 74b4bcd22e Fix issue where none root composer.json could be used by ArtifactRepository http://www.php.net/manual/en/ziparchive.locatename.php#85512 11 years ago
Jordi Boggiano e0051a4652 Update tests 11 years ago
Jordi Boggiano 444bdb2e25 Fix VCS drivers to always use identifiers and not tag names since those can change or disappear 11 years ago
Jordi Boggiano 1a50f74c4c Improve reporting of github rate limiting errors, fixes #2183 11 years ago
Jordi Boggiano bd345c3b43 Add IO to proc executor in a few more places to get more debug info out 11 years ago
Jordi Boggiano ab709107e5 Fix detection of git bitbucket repos with incorrect URLs, fixes #2095 11 years ago
Christoph 8c3a84d9fd fixed very evil 'tip' tag oversight in bitbucket driver 11 years ago
Jordi Boggiano 8d6f4307c8 Merge remote-tracking branch 'kriswallsmith/composite-repo-fix' 11 years ago
Christoph 6406e0d3b7 fixed Bitbucket's broken API 11 years ago
Kris Wallsmith fa4b13d95a fix when composite repo has no delegates 11 years ago
Jordi Boggiano f79c4e4309 Detect safe_mode and output correct error, closes #2006 11 years ago
Jordi Boggiano d498e73363 Merge pull request #2004 from jaypea/recursive_artifactrepository
ArtifactRepository needs recursive iteration
11 years ago
Jan Prieser ba87cfc6d1 find artifacts recursively in given path
uses regex to filter file extension
11 years ago
Jordi Boggiano 8d0b7f278e CS fixes 11 years ago
Pavel Savinov 831bd844bd Almost PHPDoc problems fixed 11 years ago
Justin Rovang 60e95aed76 Added realpath to VcsDriver constructor
See https://github.com/composer/composer/pull/1828
11 years ago
Jordi Boggiano b38db73611 Clean up rogue git env vars in case this is running in a git hook, refs #1832 11 years ago
Jordi Boggiano 5267bafa2c Retry fetching composer.json files twice since github returns 404s at random at the moment
@bhuga confirmed it is the best approach until github finds a fix. /cc @gillesruppert enjoy whatever your bet wins you
11 years ago
Jordi Boggiano 3f2b9b4d4b Avoid overwriting notification-url 11 years ago
Jordi Boggiano 4b26c627ff Retry file downloads 3 times before giving up in case of basic network failure 11 years ago
Jordi Boggiano a7e88f7a80 Unfold aliases in streamable repos since aliases are already loaded by the pool, refs #1346, fixes #1851 11 years ago
Jordi Boggiano 5264d0637b Fix regression added in 33af9eea95, fixes #1841 11 years ago
Jordi Boggiano 33af9eea95 Always dump packages, even if only an alias is added, fixes #1809 11 years ago
Jordi Boggiano faa419cc0e Merge remote-tracking branch 'hason/alias' 11 years ago
Jordi Boggiano 895058d1ce Merge remote-tracking branch 'spaun/master' 11 years ago
Jordi Boggiano 1b030a76d4 CS and wording fixes, refs #1728 11 years ago
Jordi Boggiano e50173ff93 Merge remote-tracking branch 'nfx/artefact-repo-type' 11 years ago
Andrey Utkin 28c219311c Rename module-path to package-path 11 years ago
Andrey Utkin 9022b0ae38 Default module path to empty string 11 years ago
Andrey Utkin 340e960614 Allow svn repositories to reside deeper than module root 11 years ago
Jordi Boggiano 313b79ee13 Implement search over description/keywords, refs #1801 11 years ago
Jordi Boggiano 3a612dca01 Only return search matches once, fixes #1801 11 years ago
Martin Hasoň 753a8345cb Added support for the alias of an aliased package 11 years ago
Jordi Boggiano d38eb244fa Add PlatformRepository::PLATFORM_PACKAGE_REGEX to remove duplication 11 years ago
Jordi Boggiano 370a9a40fc Add comment to clarify change 11 years ago
Jordi Boggiano 8401c78349 Merge pull request #1770 from sarunas/master
Moving svn driver to the last position as it causes conflicts with hg over http
11 years ago
Jordi Boggiano 2b385cbe58 Fix dependency flags not applying to provides/replaces, fixes #1771 11 years ago
Šarūnas Dubinskas 29b43ca082 Moving svn driver to the last position as it causes conflicts with hg over http 11 years ago
Serge Smertin 6cec5b0399 Added notice about need of zip extension 11 years ago
Serge Smertin 07920c48a6 Removed dev-master as default version for versionless artifact 11 years ago
Serge Smertin b5e1457470 set version to dev-master to artifacts without version 11 years ago
Serge Smertin f25bfe09c5 added support for nested location of composer.json files within artifacts 11 years ago
Serge Smertin 586911f7a1 added verbose logging for artifact directory scan 11 years ago
Serge Smertin 0aad11801e added logging for wrong files 11 years ago
Serge Smertin 4b176f11f2 added artifact repository initial functionality 11 years ago
Jordi Boggiano 41392ace56 Check that a repo has no providers when getPackages is called to catch any mis-use 11 years ago
Jordi Boggiano be861f090a Remove filterPackages and add RepositoryInterface::search, refactor all commands to use new methods and remove all usage of the full package list for Composer repositories that support providers, fixes #1646 11 years ago
Jordi Boggiano 095852933e Remove code duplication, add support for searchUrl 11 years ago
Jordi Boggiano 06026d6b93 Add @deprecated note 12 years ago
Jordi Boggiano 4207fc3b19 Refactor require-dev handling to use one single repository and a one pass solving, fixes #719, fixes #1185, fixes #1330, fixes #789, fixes #640 12 years ago
Jordi Boggiano 259a25344d Use the api to get file contents instead of raw.github.com
raw.github does not like the access_token query param
12 years ago
Jordi Boggiano 573b7a0fb7 Only downgrade providers but not the notification url 12 years ago
Jordi Boggiano f69418427f Add lib-ICU platform package 12 years ago
Jordi Boggiano 15e9c3d101 Show proper error message when a git bitbucket repo is loaded as hg repo, refs composer/packagist#294 12 years ago
Jordi Boggiano d4c9a9004a Add support for the hashed provider includes 12 years ago
Jordi Boggiano 2c4c5dd764 Fail hard only after 3 failed attempts 12 years ago
Jordi Boggiano b750e70f5f Abort execution when a RepositorySecurityException is thrown 12 years ago
Jordi Boggiano 995dc40130 Make packagist downgrade out of ssl after fetching the main file, since the other files can be verified via sha256 12 years ago
Jordi Boggiano 211b69b38b Adjust exception message 12 years ago
Jordi Boggiano b59489f6ae Merge remote-tracking branch 'edas/exception-on-broken-signature' 12 years ago
Jordi Boggiano 9521d1e7ad Make use of new hashed provider filenames, fixes #1431, refs composer/packagist#283 12 years ago
Eric Daspet a8a99cee24 Fix RepositorySecurityException class name 12 years ago
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
12 years ago
Jordi Boggiano 17a5bdf162 Normalize github URLs generated by the GitHubDriver, fixes #1551 12 years ago
Jordi Boggiano 432955e0ae Fix github url escaping, raw.github.com doesnt like escaped slashes 12 years ago
Jordi Boggiano 8904888a74 Add php-64bit package if the php version has 64bit ints, fixes #1506, fixes #1511 12 years ago
Jordi Boggiano 514a3cde77 CS fixes 12 years ago
Jordi Boggiano 5b24a48827 Allow disabling svn branches/tags, fixes composer/satis#43 12 years ago
Jordi Boggiano 04c6670f0c Detect invalid ssh URLs, fixes #1124 12 years ago
Jordi Boggiano 224934831d Change all github archive URLs to API URLs and handle fallback for those to nodeload 12 years ago
Chris Smith 120f52c632 Generate private zipball urls for private repositories 12 years ago
Christoph cebd43e735 fixed detection of inactive branches in hg 12 years ago
Jordi Boggiano a8f74a0983 Allow notification from locked installs, fixes #1368, fixes #1372, fixes #1369 12 years ago
Jordi Boggiano e868c9706b Add support for batch notifications 12 years ago
Raphael Kallensee 9713bf8bec Fix for PearRepository scheme handling, broke ChannelReaderTest. 12 years ago
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.
12 years ago
Jordi Boggiano 15475f0ef2 Rename cache dirs to consolidate them by purpose 12 years ago
Jordi Boggiano 326fcbcab7 Enforce UTC on all datetime instances, set lock release date to datetime always, refs #923 12 years ago
Jordi Boggiano 172414a1f0 Add support for ~/+ in addition to - as separator between PHP version and build details, fixes #1322 12 years ago
Jordi Boggiano 4f5d08e2ad Add InvalidRepositoryException 12 years ago
Igor Wiedler 4959c2bdc6 Replace references of a11n with a12n where appropriate
Authorization => Authentication.
12 years ago
Jordi Boggiano cbd91b5952 Fix FILTER_VALIDATE_URL not supporting IDNs 12 years ago
Jordi Boggiano 0c61e9d345 Add warning/errors flags to VCS repo output 12 years ago
Jordi Boggiano dae7f3cee7 Add a way to know if any branch failed loading 12 years ago
Jordi Boggiano 61bd34df55 Make sure error output is clearly visible 12 years ago
Jordi Boggiano 967c771b26 Add warnings to ValidatingArrayLoader that are simply stripped by default, add reporting of warnings when loading branches 12 years ago
Jordi Boggiano 1682532b80 Update code to use new github archive URLs 12 years ago
Jordi Boggiano bb701da8c2 Do not overwrite output in verbose mode 12 years ago
Martin Hasoň 45c1c3f881 Fixed package name for stability test in ComposerRepository 12 years ago
Bilal Amarni b10c832be0 fixed a typo 12 years ago
Jordi Boggiano 2b06503027 SvnDriver fixes 12 years ago
Pascal Borreli 83fd3967f0 Fixed PHPDoc 12 years ago
Pascal Borreli 5eead93250 Fixed typos 12 years ago
Jordi Boggiano 125ff3e4f5 Fix root aliasing with new providers repo format 12 years ago
Jordi Boggiano ad9f887edd Clarify error message to sound less scary until we can guarantee it 12 years ago
Chris Smith 9ed481ef02 Fix handling of legacy Composer repositories 12 years ago
Jordi Boggiano e887f6cea9 Fix CS 12 years ago
Jordi Boggiano 89d4df990a Use JsonFile to decode cached entries 12 years ago
Jordi Boggiano bebd1ce9c7 Always check for OAuth token in git config, fixes #1243 12 years ago
Jordi Boggiano 1760b1e093 Prevent CompositeRepository instances from being nested 12 years ago
Jordi Boggiano fef3dacdfb Reset ids of aliased packages as well 12 years ago
Jordi Boggiano 39e69a3b12 Refactor OAuth acquisition code to generalize it 12 years ago
Jordi Boggiano bf5f34a114 Merge remote-tracking branch '1stvamp/github-tokens-from-git-config' 12 years ago
Jordi Boggiano 338127ff9c Disable failure on hash mismatch until it can be proven to work reliably 12 years ago
Jordi Boggiano 3116c979d3 Fix undefined var, fixes #1235 12 years ago
Jordi Boggiano 573e4b2a7c Merge branch 'newrepo' 12 years ago
Wes Mason 5fb0403276 Use process executor instead of exec to run git config 12 years ago
Wes Mason 1442c1e026 Damnable tabs! 12 years ago
Wes Mason 2cb07dd2fe Allow use of Github OAuth2 token stored in git config 12 years ago
Jordi Boggiano 0a3097c569 Merge remote-tracking branch 'bboer/feature/svn-alternative-structures'
Conflicts:
	src/Composer/Repository/Vcs/GitHubDriver.php
12 years ago
Jordi Boggiano 5051e7a0a2 Only try to authorize when fetching the repo info, not subsequent calls, refs #423 12 years ago
Jordi Boggiano 32282e7461 Add hostname to the OAuth app name 12 years ago
Jordi Boggiano a9811c4e40 Store and reload the github token to/from the config 12 years ago
Jordi Boggiano 3b01d26d67 Swap user credentials for an OAuth token from GitHub 12 years ago
Thomas Adam 1bd5d88b02 quick workaround for Github API limit 12 years ago
Jordi Boggiano 5978197b5d Reset package IDs before they can be used in the pool in case there are already some in the cache 12 years ago
Jordi Boggiano ee0cd07468 CS fixes 12 years ago
Jordi Boggiano 541bcabbc0 Actually check the hash after downloading 12 years ago
Jordi Boggiano 07f72e9fb6 Add support for provider listings 12 years ago
Jordi Boggiano a3f9accd37 Fix various dumb issues 12 years ago
Jordi Boggiano aafc1f7857 Make sure alias package have a repo instance set 12 years ago
Jordi Boggiano 41c7432fef Do not fetch from repo for packages that obviously can not be there 12 years ago
Jordi Boggiano c0e5736ae7 Add support for one-file-per-provider composer repositories 12 years ago
Jordi Boggiano fde3477563 Report issues in HgDriver as well 12 years ago
Jordi Boggiano 08670e7666 Report errors properly when git driver fails to write in the cache, refs #482 12 years ago
Jordi Boggiano 116b822953 Fix loop and add missing options 12 years ago
Jordi Boggiano 1d80720405 Add retries and failover of all jsons to cache even if the main one worked 12 years ago
Jordi Boggiano fb296972ef Enable https for packagist when possible 12 years ago
Jordi Boggiano b3077bc4bc Merge pull request #1177 from sandermarechal/stream-context
Allow setting stream context options
12 years ago
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"
                }
            }
        }
    ]
}
12 years ago
Jordi Boggiano e188f69a0f Merge remote-tracking branch 'origin/master' 12 years ago
Jordi Boggiano 4998bab944 Show warning if the svn binary is missing 12 years ago
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
12 years ago
Zsolt Szeberenyi 5201564c0f Added support for hg bookmarks 12 years ago
Joseph Bielawski 4772db1460 Add missing `use` in HgDriver
Closes #1165
12 years ago
Jordi Boggiano 6bd7ca0230 Fix typos and simplify code 12 years ago
Jordi Boggiano 35245eb817 Add support for local urls and better error reporting to HgDriver 12 years ago
Jordi Boggiano c14826dd1e Fix exception handling when loading repos 12 years ago
Jordi Boggiano fe4516aff8 Clarify exception messages when a package can not be loaded from a composer repository, fixes #1070 12 years ago
Povilas Balzaravicius Pawka 57d1b5a37d Issue #1056. Fixed callback call error on search command. 12 years ago
bboer 00361e0087 Fixed tests 12 years ago
bboer d1a452b00b Made repoConfig available for the VcsDriver to be able to provide additional configuration options easily. 12 years ago
Jordi Boggiano 781e0d4f55 Add detection of gitolite user for git repos 12 years ago
Jordi Boggiano 803178d28f CS fixes for #1038 12 years ago
Christoph Hochstrasser 560d6daccf Using separate variable for URL parts 12 years ago
Christoph Hochstrasser 841efc98a6 Appending 'packages.json' only if not present in URL 12 years ago
bboer 93628c42d8 Add support for alternative structures 12 years ago
Jordi Boggiano c14bc368b0 Fix memory usage of the update command 12 years ago
Jordi Boggiano e1bd2fd6df Clean ups after feedback 12 years ago
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
12 years ago
Jordi Boggiano d6de4a0036 Rename Package interfaces to reduce BC issues 12 years ago
Jordi Boggiano 8a275336a1 CS cleanups 12 years ago
Jordi Boggiano e46d26cb9b Add loadAliasPackage to the StreamableRepositoryInterface and clear up responsibilities between Pool and Repositories 12 years ago
Jordi Boggiano 26e8217db7 Remove duplication of branch alias parsing code 12 years ago
Jordi Boggiano 2d4076e9b2 Add support for aliases in streamed repos 12 years ago
Jordi Boggiano c8a685be6b Reduce memory usage by only loading packages that are actually needed, fixes #456 12 years ago
Jordi Boggiano f08c748658 Fix tests, fix handling of branches with slashes in GitDriver, fixes #935 12 years ago
Jordi Boggiano 997ef763b4 urlencode() github calls for safety, refs #935 12 years ago
Jordi Boggiano 242df060c7 Clarify exception message 12 years ago
Jordi Boggiano a54bf6269e Improve error messages when network failures occur 12 years ago
Jordi Boggiano ec301ea8bb Output error if a VCS repo has no package at all instead of silently going through 12 years ago
Jordi Boggiano 518984b70d Output error if a local filesystem VCS repo points to a non-existing dir 12 years ago
Sebastiaan Stok 9270904765 fixed issue #992 - branch name not properly escaped 12 years ago
Jordi Boggiano 2d41774bcc Add warning when loading an https repo if openssl is disabled, refs #930 12 years ago
Nils Adermann 7c547f93bb Merge pull request #928 from Seldaek/validation
Validation
12 years ago
Jordi Boggiano 67b846f4e9 Fix undefined variable in svn driver 12 years ago
Jordi Boggiano b0151a4ce5 Allow the loader of the VcsRepository to be overriden 12 years ago
Jordi Boggiano d80180c2b9 Allow notifyUrl to be a complete URL 12 years ago
Jordi Boggiano 5ec41d83b4 Fix non-array return value in some cases on php 5.3.2, fixes #927 12 years ago
Jordi Boggiano 1f31810901 Prevent duplicate PEAR replaces if the given vendorAlias equals the channel alias 12 years ago
Robert Schönthal 0cd453449b minor changes to JsonFile::parseJson for Drivers 12 years ago
Robert Schönthal c517ac6404 fixed issue #347 added file to json validation exception 12 years ago
Alexey Prilipko 22aef0124e Revert Locker change, ignore PEAR packages whose version cannot be parsed. 12 years ago
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
12 years ago
Alexey Prilipko 77715e254a Fix exception message template 12 years ago
Alexey Prilipko f2853c842b Review fixes 12 years ago
Alexey Prilipko e173f11b37 Add PEAR channel reader & Update PearRepository to use it. 12 years ago
Nils Adermann 4eb5f73718 Only create alias package in repositories on the fly if necessary, fixes #793 12 years ago
Jordi Boggiano 656feda837 Revert previous change, use GIT_ASKPASS env var instead 12 years ago
Jordi Boggiano 4ee1ff46a8 Try ssh before http auth, and make sure ssh fails fast if no login is possible 12 years ago
Jordi Boggiano 74c2fd5f06 Merge pull request #824 from beryllium/bug823
PECL-UUID does not define a version constant, use phpversion() instead
12 years ago
Jordi Boggiano 66e9dcddf4 CS fixes 12 years ago
Jordi Boggiano de449aa144 Merge remote-tracking branch 'PSeiffert/master'
Conflicts:
	src/Composer/Factory.php
	src/Composer/Repository/RepositoryManager.php
12 years ago
Kevin Boyd 09be4ed936 PECL-UUID does not define a version constant, so we should use phpversion() to fetch the required information 12 years ago
Jordi Boggiano 95bc5c4898 Fix openssl/pcre matches, and skip other exts properly 12 years ago
Jordi Boggiano 887d913eb6 Merge remote-tracking branch 'ChristianRiesen/master' 12 years ago
Christian Riesen 70e7194b07 Changes after excellent feedback from Jordi 12 years ago
Christian Riesen 432815df67 Added more libraries to PlatformRepository 12 years ago
Jordi Boggiano ccc6fa3714 Merge pull request #775 from palex-fpt/PR-746
PEAR Packages extraction based on package.xml format
12 years ago
Christian Riesen 8d3c85225f Changed PlatformRepository to handle libraries as well now 12 years ago
Christian Riesen 7b49b013ec PlatformRepository now knows curl and libxml versions 12 years ago
Jordi Boggiano a06ebdd8ef Add caching to svn metadata 12 years ago
Alexey Prilipko 71ac073ebe Add 'include-path' option to PEAR packages 12 years ago
Jordi Boggiano 3aeb6a8f2d Minor robustness fix 12 years ago
Jordi Boggiano 740d3aa1e3 Generate source urls with labels and not identifiers 12 years ago
Jordi Boggiano 2257d0b550 Guess issues/source support info for github packages 12 years ago
Jordi Boggiano 2b2a5d0a92 Fix release- tags not being parsed 12 years ago
Jordi Boggiano d21032ace5 CS fixes 12 years ago
Jordi Boggiano c440b4594a More PSR-2 goodness 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Jordi Boggiano 794b51fcdd Merge remote-tracking branch 'naderman/remove-outdated-alias-code' 12 years ago
Christophe Coevoet c2d3c0509c Fixed the check for local git repositories 12 years ago
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.
12 years ago
Ercan Özkaya ca217bd48f Add support for file:// URIs to GitDriver 12 years ago
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.
12 years ago
Jordi Boggiano ba9676e0f2 Add caching for metadata in github driver 12 years ago
Jordi Boggiano 0a0a6b1813 Fix wrong var name, refs #674 12 years ago
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
12 years ago
Jordi Boggiano c2933028e8 Make sure github driver is used for all github urls 12 years ago
Jordi Boggiano fabf5c2f6d Add InstalledArrayRepository to make sure the root package is not purged by the Pool because of a lower stability 12 years ago
Jordi Boggiano b0134b56c5 Add CompositeRepo::getRepositories 12 years ago
Nils Adermann 655588a5e0 Merge pull request #659 from Seldaek/github_https_fallback
Github https fallback
12 years ago
Nils Adermann 0c1944a9d0 Let the solver handle aliases instead of the installer 12 years ago
Paul Seiffert 1713acf011 Coding standards and Cosmetics
Processing feedback given by @stof and @Seldaek.
12 years ago
Paul Seiffert b3a5ca93c7 Added comments -> IDE friendliness 12 years ago
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. 12 years ago
Jordi Boggiano 7bfe031768 VcsDrivers now send proper originUrl for authentication 12 years ago
Bastian Hofmann 4b3fc2b5fa Merge branch 'master' of git://github.com/composer/composer
Conflicts:
	src/Composer/Repository/PearRepository.php
12 years ago
Bastian Hofmann 7501009d74 added tests for PearRepository 12 years ago
Jordi Boggiano c454d93a20 Move all logic within try/catch to prevent an incorrect version from blowing up the whole package 12 years ago
Jordi Boggiano 58276d0a52 Warn the user but do not fail hard when a repo can not be synced 12 years ago
Jordi Boggiano b0b3e17a37 Report errors when a git repo can not be synced up 12 years ago
Jordi Boggiano b3164de813 Fix tests 12 years ago
Jordi Boggiano 115dc407fa Merge remote-tracking branch 'GromNaN/git-dir' 12 years ago
Jordi Boggiano 2dffa612a3 Merge remote-tracking branch 'igorw/root-install-twice' 12 years ago
Daniel Holmes d44b81527b Fixed variable reference in verbose pear repository message 12 years ago
Jordi Boggiano 8ff497ac6f Skip filter_var on 5.3.2 since it is buggy 12 years ago
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.
12 years ago
Jerome Tamarelle 610f15a768 Fix unit tests for VcsRepository 12 years ago
Jerome Tamarelle f0ea097134 Remove umask 12 years ago
Jerome Tamarelle 8b408449f6 Create ~/.composer/cache.hg directory if not exists 12 years ago
Jerome Tamarelle 23ef8a419a Fix var scope in HgDriver 12 years ago
Jérôme Tamarelle d200481037 Fix tmp dir for HgDriver 12 years ago
Jerome Tamarelle cc6e1397b2 Fix var scope 12 years ago
Jerome Tamarelle da823f5f19 Store vcs repositories in composer home to prevent permission issues 12 years ago
Jerome Tamarelle 949728f812 Remove redundant __contruct from VcsDriver implementations and move init code to initialize method 12 years ago
Jerome Tamarelle 017ebabcb5 Pass composer configuration to VcsDriver 12 years ago
Jerome Tamarelle d489d2aa3c Store cached git repositories in user HOME to avoid file permission issues 12 years ago
Jordi Boggiano 70ad8274cd Work around poorly configured php 12 years ago
Jordi Boggiano ef300ca56a Fix tests 12 years ago
Jordi Boggiano a5e00a9e96 Fix PEAR loading, fixes #590 12 years ago
Jordi Boggiano 466d953b5f Add verbose output to composer compat mode 12 years ago
Jordi Boggiano 9c72b093a3 Merge remote-tracking branch 'bashofmann/master' 12 years ago
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)
12 years ago
Jordi Boggiano f63df842b3 Fix alias handling with --dev installs, fixes #579 12 years ago
Jordi Boggiano 89e095b4b5 Handle --dev installs/updates 12 years ago
Jordi Boggiano b094ef7155 Add repository notification API support 12 years ago
Jordi Boggiano 2d49090ffd Make sure branches have proper .x suffix so that they can be parsed properly 12 years ago
Jordi Boggiano 273e0f777b Fix branch extraction, fixes #565 12 years ago
Jordi Boggiano 9da7fbbf37 Fix project aliases being redownloaded since they had no version 12 years ago
Jordi Boggiano fc29487a2a Add home config key and use it to create the cache instance 12 years ago
Jordi Boggiano 68a1bc645b Skip some packages in pear requirements 12 years ago
Nils Adermann fc1a7a3e23 Merge pull request #536 from Seldaek/new_composer_format
Add support for new composer repo format + cache for composer repos
12 years ago
Jordi Boggiano 0d97ec4783 Add cache to the composer repositories 12 years ago
Tiago Ribeiro 61beea3c8b Updated output when a branch is imported to show the pretty version name 12 years ago
Jordi Boggiano a476d1f97d Add support for the new composer repository format 12 years ago
Jordi Boggiano a67f62990c Prepare for upcoming format break 12 years ago
Jordi Boggiano 6f8031ac90 Fix error reporting for missing git process 12 years ago
Nami-Doc 1dba604ba1 Update src/Composer/Repository/Vcs/GitDriver.php 12 years ago
Nami-Doc 2c58dbf3a1 better message if git isn't found 12 years ago
Holger Rüprich 9e2c523faa Function proc_open doesn't accept a scheme for the current working directory, therefore stripped 'file://' for local repositories. 12 years ago
Jordi Boggiano 1cdae66f8f Fix up git downloader and git driver commands 12 years ago
Jordi Boggiano 219c31ed0c Fix git driver updating 12 years ago
Jordi Boggiano 9828472b9e Improve reliability of GitDriver, refs #485 12 years ago
Jordi Boggiano 2844a5673d Use refs API since it is more stable than the branches API with force-pushes, fixes #514 12 years ago
Nils Adermann 85caa65088 Merge pull request #520 from Seldaek/pear_composer
Detect PEAR repos that support composer via Pirum
12 years ago
Jordi Boggiano ecb82e1784 Detect PEAR repos that support composer via Pirum 12 years ago
Jordi Boggiano d53ac36636 Add debug info and remove autoload parsing that was too slow 12 years ago
Jordi Boggiano 4b2283e41c Add autoload info to PEAR packages 12 years ago
Jordi Boggiano 1fe24a3837 Add support for github URLs in git driver 12 years ago
Jordi Boggiano 6d5b4d606c Add warning in verbose mode if drivers can not be used because of missing openssl 12 years ago
Tiago Ribeiro 67885d8585 Added isDebug to IOInterface and improved debug messages for VcsRepositories 12 years ago
Jordi Boggiano 7a28a2d83a Add support for new GitHub API 12 years ago
Jordi Boggiano 7285536737 Fix exception handling 12 years ago
Jordi Boggiano 5a7abfd84f Remove code duplication in Svn classes 12 years ago
Jordi Boggiano cd2e5bf2e0 Make SvnDriver::supports less greedy and more realistic 12 years ago