1
0
Fork 0
Commit Graph

1659 Commits (1b7906e82db7782e52f541c4651c93c57fed6783)

Author SHA1 Message Date
Nils Adermann 3fa9f10184 Merge pull request #1109 from Seldaek/newlock
Use only the locked repository when possible for better performance
2012-09-14 08:51:04 -07:00
Jordi Boggiano 536563dc2a Rename method 2012-09-14 17:49:03 +02:00
Jordi Boggiano 418e876e8a Use only the locked repository when possible for better performance 2012-09-14 17:42:12 +02:00
Nils Adermann cf029cab86 Merge pull request #1108 from Seldaek/newlock
Update lock file to contain the complete package info, fixes #890
2012-09-14 07:51:18 -07:00
Jordi Boggiano 83239aa338 Update lock file to contain the complete package info, fixes #890 2012-09-14 16:43:56 +02:00
Adrien Brault fd58c24a9f ComposerAutoloaderInitXXX::getLoader behaves like a ClassLoader singleton
Calling ComposerAutoloaderInit::getLoader twice when a package requires a .php file containing functions, lead to the functions to be declared twice, and cause an error.

In my case, using behat + symfony2extension + assetic, the error that occured:

PHP Fatal error:  Cannot redeclare assetic_init() (previously declared in vendor/kriswallsmith/assetic/src/functions.php:20) in /vendor/kriswallsmith/assetic/src/functions.php on line 26

Fatal error: Cannot redeclare assetic_init() (previously declared in /vendor/kriswallsmith/assetic/src/functions.php:20) in /vendor/kriswallsmith/assetic/src/functions.php on line 26
2012-09-14 11:21:34 +02:00
Ulrich Kautz ccf2539462 Search only in name 2012-09-12 16:55:10 +02:00
Jordi Boggiano a589a47468 Merge pull request #1088 from mheleniak/bat_file_fix
fixed generated windows proxy file for *.exe
2012-09-10 07:50:35 -07:00
Mateusz Heleniak 4e638009ab fixed generated windows proxy file for *.exe 2012-09-08 16:44:11 +02:00
Jordi Boggiano d3d35f24a1 Trim query strings from dist filenames, fixes #1087 2012-09-08 14:08:19 +02:00
Jordi Boggiano c14826dd1e Fix exception handling when loading repos 2012-09-08 13:49:37 +02:00
Jordi Boggiano 5b9f190bcd Make sure invalid authors are purged 2012-09-08 13:47:08 +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
Jordi Boggiano 056dc5d690 Move config to all VcsDownloaders, enforce array for github-protocols 2012-09-08 00:45:25 +02:00
Jordi Boggiano 5b419c76ca Fix tests 2012-09-08 00:43:51 +02:00
Jordi Boggiano 122f66098e Merge remote-tracking branch 'hason/git_config' 2012-09-07 23:46:46 +02:00
Jordi Boggiano 509b8b9853 Merge pull request #1073 from Pawka/f-searchfix
Fatal on: ./composer.phar search something
2012-09-07 11:25:16 -07:00
Jordi Boggiano 20347520f2 Merge pull request #1051 from HosipLan/bug/require-files-in-right-order
Require files in right order
2012-09-07 06:56:15 -07:00
Martin Hasoň 3b6bd761ec Set protocols for github in composer config file 2012-09-07 15:08:34 +02:00
Jordi Boggiano 07a982f5b9 Merge pull request #1077 from mheleniak/script_errors
scripts in pre-*-cmd which are not found (yet) no longer halt composer
2012-09-07 03:19:51 -07:00
Mateusz Heleniak 1e458072cf scripts in pre-*-cmd which are not found (yet) no longer halt composer 2012-09-06 17:56:14 +02:00
Filip Procházka 80e9999d1c typo 2012-09-06 17:26:42 +02:00
Filip Procházka 9d8db4e148 AutoloadGenerator: respect dependencies, when requiring files 2012-09-06 15:07:07 +02:00
Povilas Balzaravicius Pawka bbac63821c Search: initialize lowMatches as empty array. 2012-09-06 13:39:51 +03:00
Povilas Balzaravicius Pawka 7154ef9af7 search: fixed output error when no results found. 2012-09-06 09:16:10 +03:00
Povilas Balzaravicius Pawka 57d1b5a37d Issue #1056. Fixed callback call error on search command. 2012-09-06 09:15:29 +03:00
Jordi Boggiano 0689e24e83 Update command descriptions, fixes #1068 2012-09-06 00:26:04 +02:00
Christophe Coevoet 9e372b1d8b Simplified the code 2012-09-05 22:56:59 +02:00
Christophe Coevoet d0faa016c1 Refactored the search of suggested packages to support replacements
Fixes #752
2012-09-05 21:01:57 +02:00
Jordi Boggiano 10d1a4382f Only generate lock file when actually necessary, fixes #1064 2012-09-04 20:06:12 +02:00
Jordi Boggiano e0dc045955 Merge pull request #1054 from mheleniak/clean_up_bat_files
Clean up *.bat files when binary is removed
2012-09-04 09:04:58 -07:00
Jordi Boggiano ecda3ea74c Merge pull request #1060 from fabpot/fix-show-command-warning
Fix PHP warning in the show command when using the -s flag
2012-09-04 08:56:01 -07:00
Jordi Boggiano 0932f65a17 Return 7 chars and not 6 for short git hashes, formatting fixes 2012-09-04 16:27:22 +02:00
Jordi Boggiano 338730b19b Merge remote-tracking branch 'zczapran/issue/1043_wrong_output_for_versions_when_updating' 2012-09-04 16:22:29 +02:00
Jordi Boggiano e01a9c564d Fix parsing of stability for lowercased RC versions 2012-09-04 15:59:44 +02:00
Benjamin Lévêque 042d2d4a77 readlink -f is missing on osx
+ osx can't execute a script with an another script
2012-09-03 15:44:49 +02:00
Fabien Potencier b5897b291d Fix PHP warning in the show command when using the -s flag 2012-09-03 09:40:03 +02:00
Mateusz Heleniak 924d39f405 also clean up *.bat files 2012-09-01 17:43:16 +02:00
Mateusz Heleniak be736c745e better exception message 2012-08-31 23:32:28 +02:00
Mateusz Heleniak 6489487245 compare references when using dists 2012-08-31 23:27:36 +02:00
Mateusz Heleniak aa0ff14be5 added --prefer-dist option 2012-08-31 22:25:17 +02:00
Zbigniew Czapran 8d966547a2 removed overkill function isHash as suggested by @stloyd 2012-08-31 16:37:03 +01:00
Zbigniew Czapran c0c23033d5 simplified if statement 2012-08-30 23:46:33 +01:00
Zbigniew Czapran 730f206cea removed unneccesary PackageMock and trailing whitespaces 2012-08-30 23:44:54 +01:00
Zbigniew Czapran 80c2736021 in VersionParser only truncate the version if hash 2012-08-30 22:01:21 +01: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
Jordi Boggiano e2f8098f53 Fix depends command on 5.3, fixes #1034 2012-08-28 13:30:57 +02:00
Jordi Boggiano 5a247ca9a5 Fix regression in updating dev packages to latest ref, fixes #1030 2012-08-27 12:03:07 +02:00
Christophe Coevoet 66b83a39d2 Removed a PHP notice when dumping the autoloader
This occured when the root package has a target-dir but does not have
configure a PSR-0 autoloader.
Fixes #1028
2012-08-24 23:25:14 +02:00
Nils Adermann 01593e0628 Merge pull request #1015 from Seldaek/memory
Reduce memory usage by only loading packages that are actually needed, fixes #456
2012-08-24 11:32:33 -07:00
Jordi Boggiano 6f77df296a Speed up Pool::match for common case 2012-08-24 16:46:08 +02:00
Jordi Boggiano 573aad8801 Check if ini_set exists before calling it 2012-08-24 16:38:01 +02:00
Jordi Boggiano 41fc6ff9ee Fix formatRequirements return value, fixes #1026 2012-08-24 13:39:37 +02:00
Bilal Amarni 5669419416 fixed typo 2012-08-24 13:55:36 +03:00
Jordi Boggiano c97720c607 Fix picking of new dev packages for updates to latest source ref 2012-08-24 12:06:29 +02:00
Jordi Boggiano f9f86f03ae Performance improvements to create-project 2012-08-24 11:38:42 +02:00
Jordi Boggiano 456b35ae72 Disable xdebug scream/show_exception_trace, fixes #989 2012-08-24 10:57:38 +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 a0903d4d35 Update create-project and show commands to use the new filterPackages method 2012-08-24 02:29:35 +02:00
Jordi Boggiano c31d588b7d Update init and depends commands to use the new filterPackages method 2012-08-24 02:29:34 +02:00
Jordi Boggiano 012798b179 Convert search command to use the filterPackages method 2012-08-24 02:29:34 +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 9965f02951 Clean up link creation 2012-08-24 02:29:32 +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 9a1fd450b0 Remove code duplication 2012-08-24 02:29:28 +02:00
Jordi Boggiano 62ead24b61 Rename variable for clarity 2012-08-24 02:29:27 +02:00
Jordi Boggiano 26e8217db7 Remove duplication of branch alias parsing code 2012-08-24 02:29:26 +02:00
Jordi Boggiano 774021bf99 Clean up Installer::aliasPackages() 2012-08-24 02:29:25 +02:00
Jordi Boggiano 25142c5351 Clarify variable variable usage 2012-08-24 02:29:24 +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 fbaf6bf5f7 Add --profile flag to display very basic profiling metrics 2012-08-24 01:32:29 +02:00
Jordi Boggiano 997ef763b4 urlencode() github calls for safety, refs #935 2012-08-24 01:10:13 +02:00
Nils Adermann 27d8904abe resetToOffset method was moved to the Decisions class a while ago 2012-08-21 16:14:08 +02:00
Jordi Boggiano 242df060c7 Clarify exception message 2012-08-21 16:04:19 +02:00
Jordi Boggiano c446331a02 Fix phar compilation 2012-08-21 10:44:05 +02:00
Jordi Boggiano b96c1dd5fa Prevent missing bins from breaking the whole install 2012-08-19 23:58:58 +02:00
Nils Adermann de6bb0409b Merge pull request #1008 from mheleniak/master
output info before fetching composer repos
2012-08-19 11:26:34 -07:00
Jordi Boggiano 521bbe6556 CS fixes 2012-08-18 16:22:15 +02:00
Jordi Boggiano ef637c8f1a CS fixes 2012-08-18 16:18:41 +02:00
Jordi Boggiano ef1f8a605f Fix file modes 2012-08-18 16:10:39 +02:00
Jordi Boggiano 4d84f62cd9 Improve consistency and formatting of verbose output for update/install 2012-08-18 16:01:44 +02:00
Jordi Boggiano 1aed88003f Merge remote-tracking branch 'digitalkaoz/issue_801'
Conflicts:
	src/Composer/Downloader/VcsDownloader.php
2012-08-18 15:31:20 +02:00
Jordi Boggiano 06675259d9 Merge remote-tracking branch 'origin/master' 2012-08-18 14:36:06 +02:00
Jordi Boggiano 209d3ebfc4 Show detailed changes in verbose mode, refs #842 2012-08-18 14:34:24 +02:00
Jordi Boggiano 756c7a04fd Add alias to dump-autoload 2012-08-18 14:33:34 +02:00
Jordi Boggiano 5b4c6f6296 Merge remote-tracking branch 'fixe/status-command'
Conflicts:
	src/Composer/Console/Application.php
2012-08-18 13:45:36 +02:00
Baldur Rensch 1398757963 Added a check for the return code when extracting zip file 2012-08-17 13:06:58 -07:00
Jordi Boggiano 7b3ce479cd Merge pull request #1006 from ClementGautier/patch-1
Fixed typo
2012-08-17 08:17:23 -07:00
Jordi Boggiano a54bf6269e Improve error messages when network failures occur 2012-08-17 16:51:58 +02:00
Mateusz Heleniak edc63c2b49 output info before fetching composer repos 2012-08-17 02:42:05 +03:00
Clément Gautier d87d010c35 Fixed typo 2012-08-16 15:56:35 +03:00
Jordi Boggiano de4e9c4022 Fix InputOption requirement flags 2012-08-15 18:29:43 +02:00