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
13 years ago
Jordi Boggiano
1bd4ccbd54
php-cs-fixer magic
13 years ago
Jordi Boggiano
794b51fcdd
Merge remote-tracking branch 'naderman/remove-outdated-alias-code'
13 years ago
Christophe Coevoet
c2d3c0509c
Fixed the check for local git repositories
13 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.
13 years ago
Ercan Özkaya
ca217bd48f
Add support for file:// URIs to GitDriver
13 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.
13 years ago
Jordi Boggiano
ba9676e0f2
Add caching for metadata in github driver
13 years ago
Jordi Boggiano
0a0a6b1813
Fix wrong var name, refs #674
13 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
13 years ago
Jordi Boggiano
c2933028e8
Make sure github driver is used for all github urls
13 years ago
Jordi Boggiano
fabf5c2f6d
Add InstalledArrayRepository to make sure the root package is not purged by the Pool because of a lower stability
13 years ago
Jordi Boggiano
b0134b56c5
Add CompositeRepo::getRepositories
13 years ago
Nils Adermann
655588a5e0
Merge pull request #659 from Seldaek/github_https_fallback
...
Github https fallback
13 years ago
Nils Adermann
0c1944a9d0
Let the solver handle aliases instead of the installer
13 years ago
Paul Seiffert
1713acf011
Coding standards and Cosmetics
...
Processing feedback given by @stof and @Seldaek.
13 years ago
Paul Seiffert
b3a5ca93c7
Added comments -> IDE friendliness
13 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.
13 years ago
Jordi Boggiano
7bfe031768
VcsDrivers now send proper originUrl for authentication
13 years ago
Bastian Hofmann
4b3fc2b5fa
Merge branch 'master' of git://github.com/composer/composer
...
Conflicts:
src/Composer/Repository/PearRepository.php
13 years ago
Bastian Hofmann
7501009d74
added tests for PearRepository
13 years ago
Jordi Boggiano
c454d93a20
Move all logic within try/catch to prevent an incorrect version from blowing up the whole package
13 years ago
Jordi Boggiano
58276d0a52
Warn the user but do not fail hard when a repo can not be synced
13 years ago
Jordi Boggiano
b0b3e17a37
Report errors when a git repo can not be synced up
13 years ago
Jordi Boggiano
b3164de813
Fix tests
13 years ago
Jordi Boggiano
115dc407fa
Merge remote-tracking branch 'GromNaN/git-dir'
13 years ago
Jordi Boggiano
2dffa612a3
Merge remote-tracking branch 'igorw/root-install-twice'
13 years ago
Daniel Holmes
d44b81527b
Fixed variable reference in verbose pear repository message
13 years ago
Jordi Boggiano
8ff497ac6f
Skip filter_var on 5.3.2 since it is buggy
13 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.
13 years ago
Jerome Tamarelle
610f15a768
Fix unit tests for VcsRepository
13 years ago
Jerome Tamarelle
f0ea097134
Remove umask
13 years ago
Jerome Tamarelle
8b408449f6
Create ~/.composer/cache.hg directory if not exists
13 years ago
Jerome Tamarelle
23ef8a419a
Fix var scope in HgDriver
13 years ago
Jérôme Tamarelle
d200481037
Fix tmp dir for HgDriver
13 years ago
Jerome Tamarelle
cc6e1397b2
Fix var scope
13 years ago
Jerome Tamarelle
da823f5f19
Store vcs repositories in composer home to prevent permission issues
13 years ago
Jerome Tamarelle
949728f812
Remove redundant __contruct from VcsDriver implementations and move init code to initialize method
13 years ago
Jerome Tamarelle
017ebabcb5
Pass composer configuration to VcsDriver
13 years ago
Jerome Tamarelle
d489d2aa3c
Store cached git repositories in user HOME to avoid file permission issues
13 years ago
Jordi Boggiano
70ad8274cd
Work around poorly configured php
13 years ago
Jordi Boggiano
ef300ca56a
Fix tests
13 years ago
Jordi Boggiano
a5e00a9e96
Fix PEAR loading, fixes #590
13 years ago
Jordi Boggiano
466d953b5f
Add verbose output to composer compat mode
13 years ago
Jordi Boggiano
9c72b093a3
Merge remote-tracking branch 'bashofmann/master'
13 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)
13 years ago
Jordi Boggiano
f63df842b3
Fix alias handling with --dev installs, fixes #579
13 years ago
Jordi Boggiano
89e095b4b5
Handle --dev installs/updates
13 years ago
Jordi Boggiano
b094ef7155
Add repository notification API support
13 years ago
Jordi Boggiano
2d49090ffd
Make sure branches have proper .x suffix so that they can be parsed properly
13 years ago
Jordi Boggiano
273e0f777b
Fix branch extraction, fixes #565
13 years ago
Jordi Boggiano
9da7fbbf37
Fix project aliases being redownloaded since they had no version
13 years ago
Jordi Boggiano
fc29487a2a
Add home config key and use it to create the cache instance
13 years ago
Jordi Boggiano
68a1bc645b
Skip some packages in pear requirements
13 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
13 years ago
Jordi Boggiano
0d97ec4783
Add cache to the composer repositories
13 years ago
Tiago Ribeiro
61beea3c8b
Updated output when a branch is imported to show the pretty version name
13 years ago
Jordi Boggiano
a476d1f97d
Add support for the new composer repository format
13 years ago
Jordi Boggiano
a67f62990c
Prepare for upcoming format break
13 years ago
Jordi Boggiano
6f8031ac90
Fix error reporting for missing git process
13 years ago
Nami-Doc
1dba604ba1
Update src/Composer/Repository/Vcs/GitDriver.php
13 years ago
Nami-Doc
2c58dbf3a1
better message if git isn't found
13 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.
13 years ago
Jordi Boggiano
1cdae66f8f
Fix up git downloader and git driver commands
13 years ago
Jordi Boggiano
219c31ed0c
Fix git driver updating
13 years ago
Jordi Boggiano
9828472b9e
Improve reliability of GitDriver, refs #485
13 years ago
Jordi Boggiano
2844a5673d
Use refs API since it is more stable than the branches API with force-pushes, fixes #514
13 years ago
Nils Adermann
85caa65088
Merge pull request #520 from Seldaek/pear_composer
...
Detect PEAR repos that support composer via Pirum
13 years ago
Jordi Boggiano
ecb82e1784
Detect PEAR repos that support composer via Pirum
13 years ago
Jordi Boggiano
d53ac36636
Add debug info and remove autoload parsing that was too slow
13 years ago
Jordi Boggiano
4b2283e41c
Add autoload info to PEAR packages
13 years ago
Jordi Boggiano
1fe24a3837
Add support for github URLs in git driver
13 years ago
Jordi Boggiano
6d5b4d606c
Add warning in verbose mode if drivers can not be used because of missing openssl
13 years ago
Tiago Ribeiro
67885d8585
Added isDebug to IOInterface and improved debug messages for VcsRepositories
13 years ago
Jordi Boggiano
7a28a2d83a
Add support for new GitHub API
13 years ago
Jordi Boggiano
7285536737
Fix exception handling
13 years ago
Jordi Boggiano
5a7abfd84f
Remove code duplication in Svn classes
13 years ago
Jordi Boggiano
cd2e5bf2e0
Make SvnDriver::supports less greedy and more realistic
13 years ago
Jordi Boggiano
30d4080014
Support windows local paths
13 years ago
Jordi Boggiano
8fb9c4bf3b
Svn related coding style/consistency fixes and minor improvements
13 years ago
Jordi Boggiano
ab9fc59d30
Add missing license headers
13 years ago
Jordi Boggiano
6c2b78a669
Merge remote-tracking branch 'till/svn-auth-reloaded'
13 years ago
Jordi Boggiano
7dfb2724cb
Fix PEAR dependencies
13 years ago
till
434f10f2d7
* more cs fixes
13 years ago
till
c6653f0711
* fix up CS suggestions from stof/seldaek
13 years ago
Till Klampaeckel
af8d4212bb
Merge pull request #3 from toastedghost/svn-auth-reloaded-imp
...
Improve 'getTags()' and 'getBranches()'
13 years ago
Flo
80bb040468
Improve 'getTags()' and 'getBranches()'
13 years ago
Beau Simensen
a6366be5a6
Handle auth challenge in SvnDriver supports.
13 years ago
till
059bde1adb
* refactored with Composer\Util\Svn::doAuthDance()
13 years ago
till
c6566825ad
Merge remote-tracking branch 'upstream/master' into svn-auth-reloaded
13 years ago
till
17f90f56eb
* move helper functions to util class
13 years ago
Mateusz Heleniak
2a9e8350b0
fixed GitDriver - set correct working directory for cli commands
13 years ago
Nils Adermann
366e98288e
Merge pull request #473 from Seldaek/gzip
...
Automatic gzip encoding support
13 years ago
Jordi Boggiano
bcbdb97cc6
Fix message when no composer file is found in a tag
13 years ago
Jordi Boggiano
72b7b169e7
Fix warning
13 years ago
Jordi Boggiano
e4cce193cf
Fix PEAR repository
13 years ago
Jordi Boggiano
7f65dd7409
Use RemoteFilesystem everywhere we do http requests
13 years ago
till
8f96786693
Merge remote-tracking branch 'upstream/master' into svn-auth-reloaded
13 years ago
till
6f364a85b3
* do not use getSvnCommand (since we are not in object context)
...
* run non interacive instead of piping output to /dev/null
13 years ago
till
c0ec8f16f9
* fixSvnUrl()
...
* extend regex to match more possible svn hosts
13 years ago
till
6d1cdb3e45
* fixSvnUrl(): to prefix absolute paths with file://
13 years ago
Jordi Boggiano
659775a607
Merge remote-tracking branch 'simensen/GitHub404FixPartTwo'
13 years ago
Beau Simensen
38680998ed
Remove the RemoteFilesystem factory and document GitHubDriver->GitDriver fallback.
13 years ago
till
5fdd09104f
resolve conflict
13 years ago
till
a1e1a8c7d7
* use askConfirmation() instead
13 years ago
till
244cc2a8c2
hide password input
13 years ago
till
96298a33dc
catch all failures
13 years ago
Jordi Boggiano
5dba49af54
Show package descriptions in show/search commands, merge similar packages in show, fixes #366
13 years ago
Beau Simensen
1e9cb6bac8
Use factory name instead of generator.
13 years ago
Beau Simensen
340ac49d87
Change `callback` to `callable`
13 years ago
Beau Simensen
6efbc7d531
Enhanced GitHub API/Private Repository support
13 years ago
Jordi Boggiano
950003bfc3
Reflow the VcsRepo and prevent exception leakage from breaking the parsing
13 years ago
Jordi Boggiano
1d544630b6
Allow requesting a particular vcs driver to bypass github/bitbucket ones
13 years ago
till
8d80969f26
trim input
13 years ago
till
4c2da57140
make static
13 years ago
till
c78d9ffece
more inline documentation
13 years ago
till
4da56ea617
explain non-interactive
13 years ago
till
f8d8ccfedc
* in interactive mode: display error message to the user when authorization fails
13 years ago
till
a3363a8560
* SvnDriver::$useCache: false by default
...
* setting is adjust in 'interactive' mode when auth fails
13 years ago
till
061d91b4a8
whitespace
13 years ago
till
1f03d37a89
* only 'ask' the user if the session is interactive
13 years ago
till
a8287118ed
* work on no-auth-cache 'creation'
13 years ago
Jordi Boggiano
6c9f1f6f5b
Merge pull request #416 from DonMartio/master
...
Missing slash permits version evaluation.
13 years ago
DonMartio
b74773053b
Missing slash prevents version evaluation.
13 years ago
Jordi Boggiano
3e22084ea4
Overhaul VcsDrivers, introduce TransportException for remote filesystem errors
13 years ago
till
978d4c145d
* more output
13 years ago
till
59c1a7ff15
* when an auth failure is detected and 'auth' is not present, we ask for credentials
...
* ... and repeat
13 years ago
till
44470da804
* do svnCommand() in execute() to be able to restart the dance in case it failed
13 years ago
till
a3e0a0805c
* always run non-interactive
13 years ago
till
907db48bb5
* wrap execution of commands into local method
13 years ago
till
99eb18d0ff
* rename var from $composer to $output (for consistency)
13 years ago
till
3f665e8bbb
* method to gather if this session is 'interactive' or 'non interactive'
13 years ago
till
d1482bfa3c
* refactor svn command 'creation' into a single method: getSvnCommand()
13 years ago
till
6417a86651
* fix docblocks
13 years ago
Jordi Boggiano
ae6de4be60
Merge pull request #377 from till/svn-auth
...
Svn auth
13 years ago
Jordi Boggiano
f546025bae
Move some code around
13 years ago
Jordi Boggiano
774e9d0da6
Remove dependency on filter_var
13 years ago
till
adfac9e34b
escape arguments
13 years ago
till
9ecbc5176e
remove isset()
13 years ago
till
0ecb710282
* add my credentials into every svn command
13 years ago
till
b30f8078e4
* avoid notice
13 years ago
till
4db4d6720b
correct my typo
13 years ago
till
ba8ccb1955
trailing space
13 years ago
till
275d1c9969
* added a method to return the credential string for the svn command
13 years ago
till
e18a4f7d31
detect if credentials are in the url
13 years ago
Jordi Boggiano
d03fb4804c
Fix local repo detection
13 years ago
Nils Adermann
a04f44a4f1
Merge pull request #359 from Seldaek/branch-alias
...
[WIP] Branch aliases support
13 years ago
Jordi Boggiano
0b7ee194c6
Remove persistence of alias data, make abstract branch aliasing and keep it in composer only
13 years ago
Jordi Boggiano
773338a688
Fixes for SVN support, fixes #172
13 years ago