]> git.pld-linux.org Git - packages/composer.git/commitdiff
use bin/compile timestamp as autoload suffix
authorElan Ruusamäe <glen@delfi.ee>
Wed, 25 Nov 2015 16:33:21 +0000 (18:33 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 25 Nov 2015 16:33:21 +0000 (18:33 +0200)
nogit.patch

index 84ca65060f4c5a69fa005dd7888f83e294f52d69..ff9bc77afb5b75d88e2c929f6a3048dfeb7d57d2 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 @@
+ $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(__FILE__);
+ // 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);
This page took 0.030519 seconds and 4 git commands to generate.