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
Jordi Boggiano
950003bfc3
Reflow the VcsRepo and prevent exception leakage from breaking the parsing
2012-03-10 00:10:41 +01:00
Jordi Boggiano
1d544630b6
Allow requesting a particular vcs driver to bypass github/bitbucket ones
2012-03-09 18:33:04 +01:00
till
8d80969f26
trim input
2012-03-09 14:34:17 +01:00
till
4c2da57140
make static
2012-03-09 14:34:02 +01:00
till
c78d9ffece
more inline documentation
2012-03-09 14:33:34 +01:00
till
4da56ea617
explain non-interactive
2012-03-09 14:25:19 +01:00
till
f8d8ccfedc
* in interactive mode: display error message to the user when authorization fails
2012-03-09 14:24:49 +01:00
till
a3363a8560
* SvnDriver::$useCache: false by default
...
* setting is adjust in 'interactive' mode when auth fails
2012-03-09 14:24:06 +01:00
till
061d91b4a8
whitespace
2012-03-09 14:13:29 +01:00
till
1f03d37a89
* only 'ask' the user if the session is interactive
2012-03-09 14:07:04 +01:00
till
a8287118ed
* work on no-auth-cache 'creation'
2012-03-09 13:47:53 +01:00
Jordi Boggiano
6c9f1f6f5b
Merge pull request #416 from DonMartio/master
...
Missing slash permits version evaluation.
2012-03-09 01:22:56 -08:00
DonMartio
b74773053b
Missing slash prevents version evaluation.
2012-03-09 10:04:52 +01:00
Jordi Boggiano
3e22084ea4
Overhaul VcsDrivers, introduce TransportException for remote filesystem errors
2012-03-08 23:14:56 +01:00
till
978d4c145d
* more output
2012-03-08 17:00:24 +01:00
till
59c1a7ff15
* when an auth failure is detected and 'auth' is not present, we ask for credentials
...
* ... and repeat
2012-03-08 16:53:41 +01:00
till
44470da804
* do svnCommand() in execute() to be able to restart the dance in case it failed
2012-03-08 16:52:36 +01:00
till
a3e0a0805c
* always run non-interactive
2012-03-08 16:42:19 +01:00
till
907db48bb5
* wrap execution of commands into local method
2012-03-08 16:27:22 +01:00
till
99eb18d0ff
* rename var from $composer to $output (for consistency)
2012-03-08 15:56:52 +01:00
till
3f665e8bbb
* method to gather if this session is 'interactive' or 'non interactive'
2012-03-08 15:44:29 +01:00
till
d1482bfa3c
* refactor svn command 'creation' into a single method: getSvnCommand()
2012-03-08 15:39:22 +01:00
till
6417a86651
* fix docblocks
2012-03-08 15:25:44 +01:00
Jordi Boggiano
ae6de4be60
Merge pull request #377 from till/svn-auth
...
Svn auth
2012-03-08 01:59:51 -08:00
Jordi Boggiano
f546025bae
Move some code around
2012-03-08 01:46:49 +01:00
Jordi Boggiano
774e9d0da6
Remove dependency on filter_var
2012-03-05 15:13:07 +01:00
till
adfac9e34b
escape arguments
2012-03-04 19:54:16 +01:00
till
9ecbc5176e
remove isset()
2012-03-04 19:46:22 +01:00
till
0ecb710282
* add my credentials into every svn command
2012-03-02 20:32:33 +01:00
till
b30f8078e4
* avoid notice
2012-03-02 20:31:50 +01:00
till
4db4d6720b
correct my typo
2012-03-02 20:03:46 +01:00
till
ba8ccb1955
trailing space
2012-03-02 19:46:46 +01:00
till
275d1c9969
* added a method to return the credential string for the svn command
2012-03-02 19:46:11 +01:00
till
e18a4f7d31
detect if credentials are in the url
2012-03-02 19:43:07 +01:00
Jordi Boggiano
d03fb4804c
Fix local repo detection
2012-02-25 04:18:23 +01:00
Nils Adermann
a04f44a4f1
Merge pull request #359 from Seldaek/branch-alias
...
[WIP] Branch aliases support
2012-02-24 18:00:44 -08:00
Jordi Boggiano
0b7ee194c6
Remove persistence of alias data, make abstract branch aliasing and keep it in composer only
2012-02-25 02:52:19 +01:00
Jordi Boggiano
773338a688
Fixes for SVN support, fixes #172
2012-02-24 10:18:24 +01:00
Jordi Boggiano
1bdab5c4c8
Add markers for leftover problems
2012-02-23 23:26:32 +01:00
Jordi Boggiano
1228c04984
Add support for extra.branch-alias config to remap master on 2.1.x for example
2012-02-23 23:26:31 +01:00
Jordi Boggiano
c0b18bddb9
Bugfixes in the local git repos handling
2012-02-23 23:22:45 +01:00
Per Bernhardt
9a17899608
Although the tag "tip" does not provide a valid package version (see VersionParser), the implementation of HgDriver::getSource uses tip as the prefered label for the branch that tip is currently on.
...
This is not a problem at first hand because you can install a new package correctly with "tip" as source reference.
The problem is that any new revision on that branch won't lead to a new package, because the package will always refer to the same reference "tip".
Therefore you cannot update your project to the new version with "composer update".
2012-02-23 12:07:57 +01:00
Jordi Boggiano
5eb333680b
Rename findPackagesByName to findPackages and allow version arg
2012-02-21 14:02:08 +01:00
Igor Wiedler
d9b535e230
[pear-prefix] fix installing pear packages
2012-02-20 13:01:29 +01:00
Igor Wiedler
06f1ecf83a
[pear-prefix] add a pear-{channel}/ prefix to PearRepository packages
2012-02-20 12:51:30 +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
Jordi Boggiano
d0d5329f6f
Fix package repositories
2012-02-19 19:12:56 +01:00
Jordi Boggiano
c12dccd3d4
Restore quality of debug output
2012-02-19 16:57:34 +01:00
Jordi Boggiano
f73c08043f
Refactor VcsRepo to follow new dev model
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
Jordi Boggiano
e2199b2b03
Fixed automatic date parsing of versions
2012-02-18 17:05:13 +01:00
Jordi Boggiano
a28fa790be
Fix regex
2012-02-18 16:03:49 +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
d0f6b679bc
Merge remote-tracking branch 'francoispluchino/master'
2012-02-17 11:45:55 +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
2e3eed081a
Merge remote branch 'composer/master'
...
Conflicts:
src/Composer/Downloader/FileDownloader.php
2012-02-16 18:11:01 +01:00
François Pluchino
953f0992f7
Merge callback method of FileDownloader and VcsDriver
...
Required corrections added
2012-02-15 13:11:29 +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
Jordi Boggiano
416ae21a5a
Robustness fixes for new PEAR2 compat code
2012-02-13 23:07:18 +01:00
François Pluchino
f5d90e1340
Download Dist Package when the info is defined in root composer file
2012-02-13 17:40:54 +01:00
Henrique Moody
230f43d009
Chaged the key "recommend" for "suggest" in the parse of the PEAR2 dependences.
2012-02-11 15:17:27 -02:00
Henrique Moody
61c66b98a8
Correction of wrong variable name.
2012-02-11 13:33:25 -02:00
Henrique Moody
b3d91cab02
Update dependence resolution for PEAR2 packages.
2012-02-11 13:04:33 -02:00
Henrique Moody
9ca157913a
Remotion of a debug code.
2012-02-11 12:57:41 -02:00
Henrique Moody
234a6710a1
Correction at method parseVersion() of Composer\Repository\PearRepository.
2012-02-11 12:57:40 -02:00
Henrique Moody
be448e09b4
Update src/Composer/Repository/PearRepository.php
2012-02-11 12:57:40 -02:00
Henrique Moody
dd2174885b
Correction of variable overwrite used during an iteration and now the versions of PHP extensions are parsed like packages.
2012-02-11 12:57:40 -02:00
Henrique Moody
4e6a9806b6
Correction of wrong type suggestion.
2012-02-11 12:57:40 -02:00
Henrique Moody
6c47d6efe2
Renamed methods of Composer\Repository\PearRepository: fetchPearRepositories() to fetchPearPackages() and fetchPear2Repositories() to fetchPea2Packages().
2012-02-11 12:57:40 -02:00
Henrique Moody
b62a90a981
Removed hard code - suggestion of a PHP version.
2012-02-11 12:57:40 -02:00
Henrique Moody
0c6d806791
Correction of typo.
2012-02-11 12:57:40 -02:00
Henrique Moody
1e11aff456
Create method parseVersion for parsing of package versions. Now includes "max" version of the package.
2012-02-11 12:57:40 -02:00
Henrique Moody
c7e0fb7e58
Correction of typo error.
2012-02-11 12:57:40 -02:00
Henrique Moody
60831ac3fc
Update src/Composer/Repository/PearRepository.php
2012-02-11 12:57:40 -02:00
Henrique Moody
14adc0213e
Added suport for PEAR2 repositories.
2012-02-11 12:57:39 -02:00
Beau Simensen
d05f0a6e40
Addressed coding standard issues reported by @stof
2012-02-05 18:25:41 -08:00
Beau Simensen
e1370be7a0
Continued refactoring of install() method, mainly by way of adding Composite Repository
...
* Rewritten `install()` method now takes a repository instead of a list of packages (per @nadermen)
* Added Composite Repository
* Added tests for Composite Repository
* Removed "local repository" concept from Platform Repository
* Removed some `use` statements for Platform Repository where it was not actually being used
2012-02-05 18:25:41 -08:00
François Pluchino
a0afb88d5d
Fix bug on authorization of file download for the private repositories
2012-02-05 20:21:06 +01:00
Jordi Boggiano
568d9dabf6
fix previous commit
2012-02-03 20:32:09 +01:00
Pádraic Brady
3f7e7dff33
Fix a small bug where some PEAR channels' category link href doesn't contain a starting forward slash
2012-02-02 19:57:37 +00:00
Brian Clozel
23d85f1900
fix typo
2012-01-24 10:38:32 +01:00
Brian Clozel
33a0ba69de
fix issue #251 - Using $this not in object context
2012-01-23 19:41:44 +01:00
Jordi Boggiano
702d415472
Fix usage of the ProcessExecutor
2012-01-22 20:08:57 +01:00
Jordan Alliot
9c27e38654
Moved proxy handling to a new class so that it can be reused in other parts of Composer
2012-01-21 20:58:36 +01:00
digitalkaoz
627deab51c
fixed #230
2012-01-20 20:50:21 +01:00
François Pluchino
6d4ccaa398
Fix display overwrite()
2012-01-18 13:58:44 +01:00
Jordi Boggiano
e218b811e0
Convert static Process into an executor that can be injected
2012-01-18 09:27:57 +01:00
Jordi Boggiano
434c9ecdeb
Cleanups of IOInterface
2012-01-17 23:08:12 +01:00
Jordi Boggiano
6492118f29
Merge remote-tracking branch 'francoispluchino/master'
...
Conflicts:
src/Composer/Repository/Vcs/GitDriver.php
src/Composer/Repository/Vcs/HgDriver.php
src/Composer/Repository/Vcs/SvnDriver.php
2012-01-17 22:31:27 +01:00
Jordi Boggiano
6cfed52aae
Merge remote-tracking branch 'digitalkaoz/process'
2012-01-17 21:47:37 +01:00
François Pluchino
8053878b6a
Merge branch 'master'
...
Conflicts:
src/Composer/Console/Application.php
2012-01-17 17:56:06 +01:00
François Pluchino
03f5eee3fa
Fix some improvements
2012-01-17 14:53:50 +01:00
François Pluchino
541285022d
Replace CURL with copy() and file_get_contents()
2012-01-17 12:52:14 +01:00
François Pluchino
a5fb4abb36
Fix some improvements
2012-01-17 10:29:54 +01:00
Christophe Coevoet
bca786d5c3
Fixed the tests
...
array_filter preserves the keys even when filtering an array indexed
numerically.
2012-01-16 22:40:14 +01:00
Christophe Coevoet
bd1d20b2c9
Fixed CS
2012-01-16 22:11:31 +01:00
François Pluchino
7888ec5313
Add Authentification in FileDownloader
2012-01-16 20:09:32 +01:00