188 Commits (f267b01852985da79d2f86f3d0610b8b66feb363)

Author SHA1 Message Date
Pádraic Brady 306ba77e93 Implement the RemoteFilesystem Factory everywhere...
- also fixes impacted test
10 years ago
Jordi Boggiano 81994f6b90 Re-download files when the cached copy is invalid, fixes #1496 11 years ago
Luís Otávio Cobucci Oblonczyk 0f2c0ab389 Merge remote-tracking branch 'upstream/master'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
11 years ago
user a956ce9bb1 Use 'cache-files-ttl' for cache gc, fixes #2441
The configuration option 'cache-ttl' was used instead of 'cache-files-ttl' to determine
whether or not a cache gc should be performed.

* changed 'cache-ttl' to 'cache-files-ttl' to determine if a gc should be performed
* refactored FileDownloader to allow for easier testing
* added test to ensure that the gc is called with the proper config option
11 years ago
smaftoul 0959d8f134 Retry on some 5xx errors
`composer install` gives me some intermittent 502 errors on github. Composer already does some retries. I think, on 502, 503 and 504, we should retry.
11 years ago
Jordi Boggiano 11a0d16ccc CS fixes 11 years ago
Nils Adermann 786ea2929b Merge remote-tracking branch 'github-composer/master' into plugins
* github-composer/master:
  Make sure directories we are downloading to are empty
  Fix parsing of trunk in SvnDriver, fixes composer/satis#88
  Fix file layout in unit tests
  Fix parse error thrown in PHP5.5+
11 years ago
Nils Adermann a080ae3a51 Make sure directories we are downloading to are empty
We already clear them on error anyway and usually they should be
empty, but just to be safe.
11 years ago
Nils Adermann 3b519e44c4 Rename PrepareRemoteFilesystem event to PreFileDownload 11 years ago
Nils Adermann 3960edd64e Turn EventDispatcher into generic solution handling plugins as well 11 years ago
Luís Otávio Cobucci Oblonczyk d4043b6b9a Package options must be passed as argument to downloader 11 years ago
Jordi Boggiano 30f94365f0 Return path of the downloaded file 11 years ago
Albert Casademont 5234e64e97 Retry file download also on Internal Server Error 500 code as is mostly a temporary glitch (at least on GitHub) 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 2d40e14985 Try twice to remove a directory on windows because sometimes it fails due to temporary locks 12 years ago
Filippo Tessarotto 470adc47df Switched rand() to mt_rand() 12 years ago
Jordi Boggiano a18db058d5 Fix typo 12 years ago
Jordi Boggiano ee1691f799 Also try authenticating on github for 403 responses 12 years ago
Galymzhan 219b489d01 add size-based limit for files cache, fixes #1321 12 years ago
Jordi Boggiano b34e8554d2 Output info about downloads even with --no-progress and show when reading from cache, refs #1410 12 years ago
Galymzhan f59181d7d5 add support for --no-progress, fixes #621 12 years ago
Jordi Boggiano 6ed65c9e91 Reuse hostname var 12 years ago
Jordi Boggiano 224934831d Change all github archive URLs to API URLs and handle fallback for those to nodeload 12 years ago
Wes Mason 1ce7c28f11 Allow OAuth2 authentication to downloads on api.github.com not just github.com 12 years ago
Jordi Boggiano 07f7487c60 Clear cached files when they fail to extract or validate, refs #941 12 years ago
Jordi Boggiano 5a9d986e67 Implement cache GC and fix keys 12 years ago
Jordi Boggiano fb3a43b2f0 Add local cache to dist downloads 12 years ago
Pascal Borreli 83fd3967f0 Fixed PHPDoc 12 years ago
Jordi Boggiano bebd1ce9c7 Always check for OAuth token in git config, fixes #1243 12 years ago
Jordi Boggiano 39e69a3b12 Refactor OAuth acquisition code to generalize it 12 years ago
Jordi Boggiano fa3d6c7ce2 Fix originUrl in FileDownloader, refs #423 12 years ago
Jordi Boggiano ee0cd07468 CS fixes 12 years ago
Jordi Boggiano 027037bb9f Fix dist urls for lock files and hardcoded references 12 years ago
Jordi Boggiano d3d35f24a1 Trim query strings from dist filenames, fixes #1087 12 years ago
Jordi Boggiano 4d84f62cd9 Improve consistency and formatting of verbose output for update/install 12 years ago
Jordi Boggiano 1bd4ccbd54 php-cs-fixer magic 12 years ago
Jordi Boggiano d74eec9bd5 Clarify output 12 years ago
Jordi Boggiano b84bcd84d6 Let the user know a package is being removed 12 years ago
Jordi Boggiano f7440076fa Revert "Merge remote-tracking branch 'naderman/remove-packages-by-default'"
This reverts commit 2988152602, reversing
changes made to adb4188e12.
12 years ago
Jordi Boggiano d5e35fbe19 Clarify output 12 years ago
Jordi Boggiano b99f9bae60 Let the user know a package is being removed 12 years ago
Jordi Boggiano 9371253e38 Fail hard if a package can not be properly removed 12 years ago
till 9922301841 for debugging 12 years ago
Jordi Boggiano 7cb79bb1c9 Fix typo & tests 12 years ago
Jordi Boggiano 605e1cb925 Clean up in case of download/extraction failure, fixes #356 12 years ago
Jordi Boggiano f98bd971f2 Add Gzip handling to RemoteFilesystem 12 years ago
Jordi Boggiano a02940cafb Fix tests 12 years ago
Konstantin Tjuterev 0b7896cdad Simplified & fixed ConsoleIO->overwrite, corrected output when downloading with progress 12 years ago
Martin Hasoň f026e2a0eb Added tests for FileDownloader and ArchiveDownloader 13 years ago
Martin Hasoň 1f43f915da Removed copy/paste code 13 years ago
Martin Hasoň f1618df349 Added downloader for simple files and refactor FileDownloader into ArchiveDownloader 13 years ago
Jordi Boggiano db03b7bbbd Fix line endings 13 years ago
François Pluchino 56150fd98f Merge remote branch 'composer/master' 13 years ago
MattKetmo 7d5ba2d756 [DownloadFile] Renamed wrapper directory after extract
This fixes error when the extracted directory (from an archive) contains
a folder with the same name. Example:

    $ mv test/test test
    mv: test/test and test/test are identical
13 years ago
François Pluchino 953f0992f7 Merge callback method of FileDownloader and VcsDriver
Required corrections added
13 years ago
Jordi Boggiano 256bfedea1 Merge remote-tracking branch 'jalliot/proxy2'
Conflicts:
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Repository/PearRepository.php
13 years ago
François Pluchino 9638247e44 Move to Util Class 13 years ago
François Pluchino f5d90e1340 Download Dist Package when the info is defined in root composer file 13 years ago
Jordi Boggiano 5da021ffa7 Moved Filesystem to base Util namespace 13 years ago
Jordi Boggiano a6ce43817e Overhaul VCS downloaders, added base class and uniformized 13 years ago
Jordan Alliot 054faef5eb New context at each call and possibility to add more options and params to the context 13 years ago
Jordan Alliot 9c27e38654 Moved proxy handling to a new class so that it can be reused in other parts of Composer 13 years ago
François Pluchino 1c65fd2078 Remove the Warning, because managed in the callbackGet notification 13 years ago
François Pluchino 3cbe7cf590 Fix bug display in FileDownloader 13 years ago
Jordi Boggiano 6c2ec966ff Fix ConsoleIO::overwrite 13 years ago
Jordi Boggiano 434c9ecdeb Cleanups of IOInterface 13 years ago
François Pluchino 03f5eee3fa Fix some improvements 13 years ago
François Pluchino 9963bde367 Fix some improvements 13 years ago
François Pluchino 541285022d Replace CURL with copy() and file_get_contents() 13 years ago
François Pluchino 7888ec5313 Add Authentification in FileDownloader 13 years ago
François Pluchino a10f92aafe Convert Wrapper class to ConsoleIO class 13 years ago
François Pluchino 9af46ad800 Add Helper Wrapper 13 years ago
François Pluchino cad1497b95 Keep history action on download 13 years ago
François Pluchino 9c7e7a2c4a Remove comment 13 years ago
François Pluchino 395e2e040d Add callback download informations 13 years ago
François Pluchino 2f0162053d Add OutputConsole and format the download output 13 years ago
François Pluchino 013d145bcd Add InputInterface and OutputInterface 13 years ago
Jordan Alliot 3444bdae82 Check openssl extension for proxy 13 years ago
Jordan Alliot 1471b41ba8 Handle system proxy in file downloads 13 years ago
Nils Adermann 71a6b47e90 Merge pull request #140 from Seldaek/bins
Add binaries support
13 years ago
Jordi Boggiano 725850c521 Fix github ssl bypass with http:// urls 13 years ago
Jordi Boggiano aa94918d50 Add binaries support in composer 13 years ago
Jordi Boggiano 418e2e28f3 Merge remote-tracking branch 'chEbba/tar-phar-downloader'
Conflicts:
	src/Composer/Downloader/PearDownloader.php
13 years ago
Jordi Boggiano 3ad905ae99 Lift openssl requirement for github archives (thanks @pborreli) 13 years ago
Jordi Boggiano 0cfbea624e Add warnings if OpenSSL is not enabled, fixes #84 13 years ago
Kirill chEbba Chebunin 7527d0af43 Add throws declaration for FileDownloader::extract() 13 years ago
everzet 195272da09 refactored DownloaderInterface to be mono-installation-type 13 years ago
Jordi Boggiano 00a4fe2a14 Refactor downloaders, git installs actually work well now 13 years ago