]> git.pld-linux.org Git - packages/composer.git/commitdiff
skip the composer install hackery
authorElan Ruusamäe <glen@delfi.ee>
Wed, 25 Nov 2015 17:05:20 +0000 (19:05 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 25 Nov 2015 17:05:20 +0000 (19:05 +0200)
nogit.patch

index 2025bbff8f07f761218d2508dbe99fb0dbdc353c..12726d8d950eedc30afe517700f52ef88506a51a 100644 (file)
          if ($process->run() == 0) {
              $this->version = trim($process->getOutput());
          } else {
---- composer-1.0.0-14.alpha11/bin/compile~     2015-11-25 18:30:24.000000000 +0200
-+++ composer-1.0.0-14.alpha11/bin/compile      2015-11-25 18:32:33.718541181 +0200
-@@ -3,11 +3,7 @@
+--- composer-1.0.0-14.alpha11/bin/compile      2015-11-25 18:32:33.718541181 +0200
++++ composer-1.0.0-14.alpha11/bin/compile      2015-11-25 19:04:02.596489328 +0200
+@@ -1,20 +1,6 @@
+ #!/usr/bin/php
+ <?php
  
- $cwd = getcwd();
- chdir(__DIR__.'/../');
+-$cwd = getcwd();
+-chdir(__DIR__.'/../');
 -$ts = rtrim(shell_exec('git log -n1 --pretty=%ct HEAD'));
 -if (!is_numeric($ts)) {
 -    echo 'Could not detect date using "git log -n1 --pretty=%ct HEAD"'.PHP_EOL;
 -    exit(1);
 -}
-+$ts = filemtime(__DIR__.'/composer');
- // Install with the current version to force it having the right ClassLoader version
- // Install without dev packages to clean up the included classmap from phpunit classes
- shell_exec('php bin/composer config autoloader-suffix ComposerPhar' . $ts);
+-// Install with the current version to force it having the right ClassLoader version
+-// Install without dev packages to clean up the included classmap from phpunit classes
+-shell_exec('php bin/composer config autoloader-suffix ComposerPhar' . $ts);
+-shell_exec('php bin/composer install -q --no-dev');
+-shell_exec('php bin/composer config autoloader-suffix --unset');
+-chdir($cwd);
+-
+ require __DIR__.'/../src/bootstrap.php';
+ use Composer\Compiler;
This page took 0.106036 seconds and 4 git commands to generate.